broccoli-browserify-cache

2.0.1 • Public • Published

broccoli-browserify-cache

Broccoli plugin to use browserify to bundle all of your dependencies. It will cache the node_modules directory for faster re-builds.

Installation

npm install broccoli-browserify-cache --save-dev

Usage

var browserify = require('broccoli-browserify-cache');
 
var outputTree = browserify(inputTree, {
  entries: ['./main'],
  outputFile: 'foo.js',
  config: function (b) {
    b.exclude(packageName);
  }
});

Options

  • entries - Array of files to be used as the entry for browserify
  • outputFile - Relative path of the output file.
  • browserifyOptions - Options passed to the browserify constructor
  • cache - Default: true - Whether caching is enabled or not. In production, I would recommend setting this to false.
  • config - Callback with the first argument being the browserify constructor

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.1
    2
    • latest

Version History

Package Sidebar

Install

npm i broccoli-browserify-cache

Weekly Downloads

3

Version

2.0.1

License

MIT

Last publish

Collaborators

  • rickharrison