Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/joe-sky/standalonify
- Owner: joe-sky
- License: mit
- Created: 2016-05-22T08:07:08.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-04T00:35:49.000Z (about 8 years ago)
- Last Synced: 2024-12-03T04:47:50.638Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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