Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joe-sky/standalonify

A Browserify plugin to make standalone UMD bundles
https://github.com/joe-sky/standalonify

Last synced: 21 days ago
JSON representation

A Browserify plugin to make standalone UMD bundles

Awesome Lists containing this project

README

        

# standalonify
A Browserify plugin to make standalone UMD bundles. This is a fork of [dependify](https://github.com/rturnq/dependify).

## Installation
npm install -save standalonify

## Usage
```js
var browserify = require('browserify');
var standalonify = require('standalonify');

browserify({
entries: 'your entry file'
}).plugin(standalonify, {
name: 'moduleName', //or set such as "['moduleName1', 'moduleName2']", can set more than one module name.
deps: {
'react': 'React', // require('react') will use AMD's and CommonJS's require('react') or the React global object.
'react-dom': 'ReactDOM'
},
hasAmdDeps: true //If set to false will not generate amd dependency.
});
```

### License

MIT