Skip to content

Instantly share code, notes, and snippets.

@marcello3d
Created April 22, 2014 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcello3d/31ee4dba5195aafe2847 to your computer and use it in GitHub Desktop.
Save marcello3d/31ee4dba5195aafe2847 to your computer and use it in GitHub Desktop.
// Browserify and copy js files
gulp.task('browserify', watchify(function scriptsTask(watchify) {
return gulp.src(BROWSERIFY_SRC)
.pipe(watchify({
setup: function(bundle) {
bundle.transform(require('ractify'))
},
watch:watching
}))
.pipe(streamify(uglify()))
.pipe(gulp.dest(BROWSERIFY_DEST))
.on('error', markAsFailed)
}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment