mimosa-requirebuild-include
v0.0.4
Published
Mimosa module for modifiying the r.js config pre-optimize
Downloads
7
Readme
mimosa-requirebuild-include
Based on mimosa-requirebuild-textplugin-include
Overview
This is a Mimosa module. It intercepts the r.js configurations before optimization occurs in order to include additional dependencies that the optimizer might not find during it's static analysis.
The actual function of this module is to find text dependencies and include them in the include
array for a r.js run via the requirejs text plugin.
For more information regarding Mimosa, see http://mimosajs.com
Usage
Add 'requirebuild-include'
to your list of modules. That's all! Mimosa will install the module for you when you start up.
Functionality
The 'mimosa-requirebuild-include'
module configuration is a pointer to a directory of files to include. The patterns option is an array of glob patterns relative to the mimosa base url and is used to identify additional files to add to the 'include' array for r.js.
Default Config
requireBuildInclude:
patterns: ["some/dynamically/loaded/folder/**/*.js"]
patterns
: an array of glob patterns, used to match files to include in the r.js config's 'include' array. Ex: foo/*.js. All files in the watch.javascriptDir/foo folder will be pushed into the array and already present array entries will be left alone.