node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org »

fis-prepackager-browserify

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'
    }
]);