https://github.com/rickharrison/broccoli-browserify-cache
Browserify plugin with caching for Broccoli
https://github.com/rickharrison/broccoli-browserify-cache
Last synced: 10 months ago
JSON representation
Browserify plugin with caching for Broccoli
- Host: GitHub
- URL: https://github.com/rickharrison/broccoli-browserify-cache
- Owner: rickharrison
- License: mit
- Created: 2014-10-26T05:01:48.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-07-11T20:49:27.000Z (about 10 years ago)
- Last Synced: 2025-02-03T21:30:23.596Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# broccoli-browserify-cache
[Broccoli](https://github.com/broccolijs/broccoli) plugin to use browserify to bundle all of your dependencies. It will cache the node_modules directory for faster re-builds.
## Installation
```js
npm install broccoli-browserify-cache --save-dev
```
## Usage
```js
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