fis-prepackager-browserify

0.1.2 • Public • Published

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

Package Sidebar

Install

npm i fis-prepackager-browserify

Weekly Downloads

2

Version

0.1.2

License

MIT

Last publish

Collaborators

  • csbun