Skip to content

Instantly share code, notes, and snippets.

View fgandellini's full-sized avatar
🏠
Working from home

Federico Gandellini fgandellini

🏠
Working from home
View GitHub Profile
@fgandellini
fgandellini / gist:ee2ded45d71937188ec4
Created February 10, 2015 15:58
gulp task for bundling with browserify
gulp.task('bundle', function () {
watchify.args.debug = true;
//watchify.args.ignoreMissing = true;
var bundler = watchify(browserify('./main.js', watchify.args));
bundler.on('update', rebundle);
function rebundle() {
return bundler.bundle()
//.pipe(exorcist(__dirname + '/dist/bundle.js.map'))