Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gulp.task('browserify', function() {
- return browserify({ entries: ['./admin/js/init.js'] })
- .transform(babelify.configure({
- presets: ["es2015"],
- ignore: '/js/lib/',
- }))
- .bundle()
- .on('error', function(err){
- // print the error (can replace with gulp-util)
- console.log(err.message);
- console.log('Full error: ', err);
- // end this stream
- this.emit('end');
- })
- .pipe(source('bundle.js'))
- .pipe(gulp.dest('./admin/js/'))
- .pipe(notify({ message: 'Bundle JS processed!'}));
- return;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement