Skip to content

Latest commit

 

History

History
58 lines (35 loc) · 1.54 KB

File metadata and controls

58 lines (35 loc) · 1.54 KB

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)

####Options

  • entries : (default []) Array of files to be used as entry points
  • outputFile: (default "./browserify.js") Output file
  • browserify : (default {}) Options passed to the browserify constructor
  • require: (default []) An array of file, option pairs passed to browserify require method
  • transform: (default []) An array of option, transform pairs passed to browserify transform 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