RequireJS plugin for Broccoli
npm install broccoli-requirejs```
npm install --save-dev broccoli-requirejs
| Key | Mandatory | Type | Description |
|:--- | :---: | :--- | :--- |
| verbose | :-1: | Boolean (default false) | Prints the result of the optimization |cacheInclude
| | :-1: | Array | See (CachingWriter documentation)[https://github.com/ember-cli/broccoli-caching-writer#documentation] |cacheExclude
| | :-1: | Array | See (CachingWriter documentation)[https://github.com/ember-cli/broccoli-caching-writer#documentation] |requirejs
| | :+1: | Object | RequireJS options, out or dir is used to set the output tree |
`js`
var RequireJs = require('broccoli-requirejs');
var tree = new RequireJS('lib', {
verbose : true,
requirejs : {
name : 'index',
out : 'bundle.js'
}
});
I know, right?
Running the tests:
`bash``
npm test
This project is distributed under the MIT license.