fis-prepackager-browserify
v0.1.2
Published
A browserify prepackager for fis
Downloads
9
Readme
fis-prepackager-browserify
A browserify prepackager for fis / Scrat with default transforms:
Usage
You can use all browserify opts and html-minifier options:
fis.config.set('settings.prepackager.browserify', {
// browserify opts
browserify: {
debug: true
},
// html-minifier Options
'html-minifier': {
removeComments: true,
collapseWhitespace: true,
conservativeCollapse: true,
preserveLineBreaks: true
}
});
fis.config.set('modules.prepackager', 'browserify');
fis.config.set('roadmap.path', [
{
// source js
reg: 'src/**/*.js',
// `isLayout` should be `TRUE`
isLayout: true
},
{
// other js `isLayout` != `TRUE`
reg: 'server/**/*.js'
}
]);