Awesome
brocolli-browserify
Use require('modules')
in the browser with
browersify
and broccoli
Install
npm install --save-dev broccoli-browserify
Example
var browserify = require('broccoli-browserify');
tree = browserify(tree, options);
API
browserify(tree, options)
tree
: A broccoli tree or a directory path as a string
####Options
entries
: (default[]
) Array of files to be used as entry pointsoutputFile
: (default"./browserify.js"
) Output filebrowserify
: (default{}
) Options passed to the browserify constructorbundle
: (default{}
) Options passed to browserify bundle methodrequire
: (default []) An array of file, option pairs passed to browserify require method
Changelog
0.1.0
- Updated to use broccoli-writer instead of deprecated broccoli-transform (thanks mjijackson)
- Added require option to call browserify.require()
- Improved Readme file
0.0.1
- Initial release
Contributors
License
MIT © Gareth Andrew