Use require('modules')
in the browser with
browersify
and broccoli
npm install --save-dev broccoli-browserify
var browserify = require('broccoli-browserify');
tree = 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
- Updated to use broccoli-writer instead of deprecated broccoli-transform (thanks mjijackson)
- Added require option to call browserify.require()
- Improved Readme file
- Initial release
MIT © Gareth Andrew