gulpfile.js
function bundleDevelopment() {
    const opts = assign({}, browersifyOptions, { debug: true });
    const bundler = browserify(opts).transform(babelify.configure(babelifyOptions));
    bundler.on('log', gutil.log); // output build logs to terminal

    return bundler.bundle()
    .on('error', (err) => { // log errors if they happen
        gutil.log('Browserify Error', err);
    })
    .pipe(source('crudl.js'))
    .pipe(gulp.dest(dist))
    .on('end', () => {
        gutil.log(`Successfully build ${gutil.colors.magenta(`${dist}/crudl.js`)}`)
    })
}
function bundleDevelopment() {
    const opts = assign({}, browersifyOptions, { debug: true });
    const bundler = browserify(opts).transform(babelify.configure(babelifyOptions));
    bundler.on('log', gutil.log); // output build logs to terminal

    return bundler.bundle()
    .on('error', (err) => { // log errors if they happen
        gutil.log('Browserify Error', err);
    })
    .pipe(source('crudl.js'))
    .pipe(gulp.dest(dist))
    .on('end', () => {
        gutil.log(`Successfully build ${gutil.colors.magenta(`${dist}/crudl.js`)}`)
    })
}
function bundleDevelopment ( ) { const opts = assign ( { } , browersifyOptions , { debug : true } ) ; const bundler = browserify ( opts ) . transform ( babelify . configure ( babelifyOptions ) ) ; bundler . on ( 'log' , gutil . log ) ; // output build logs to terminal return bundler . bundle ( ) . on ( 'error' , ( err ) => { // log errors if they happen gutil . log ( 'Browserify Error' , err ) ; } ) . pipe ( source ( 'crudl.js' ) ) . pipe ( gulp . dest ( dist ) ) . on ( 'end' , ( ) => { gutil . log ( ` ${ gutil . colors . magenta ( ` ${ dist } ` ) } ` ) } ) }
Bundle the dev module
Bundle the dev module