fis-preprocessor-browserify
v0.2.1
Published
A browserify preprocessor for fis
Downloads
12
Readme
fis-preprocessor-browserify
A browserify preprocessor for fis / Scrat with default transforms:
Usage
You can use all browserify opts:
fis.config.set('settings.preprocessor.browserify', {
// browserify opts
browserify: {
debug: true
},
});
fis2
fis.config.set('modules.preprocessor.js', 'browserify');
fis.config.set('roadmap.path', [
{
// entry js
reg: 'views/**/*.js',
// `isLayout` should be `TRUE`
isLayout: true
}, {
// other js `isLayout` != `TRUE`
reg: '**/*.js'
}
]);
fis3
fis.match('index.js', {
release: '$0',
preprocessor: fis.plugin('browserify')
});