How to use the browserify.default function in browserify

To help you get started, we’ve selected a few browserify examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mindrones / timely-dependency-graph / gulp / tasks / logic.js View on Github external
gulp.task('logic', () => {
    return browserify('./src/viz/logic/index.js')
    .bundle()
    .pipe(source('index.js'))
    .pipe(buffer())
    .pipe( preprocess({ context: {PRODUCTION: opts.p} }) )
    .pipe(gulp.dest('./build/dev'))
    .pipe(gulpif(opts.p, uglify({preserveComments: 'license'})))
    .pipe(gulp.dest('./build/dist'))
    .on('error', gutil.log)
});