Skip to content

Commit

Permalink
Merge pull request gulpjs#1046 from grmlin/patch-1
Browse files Browse the repository at this point in the history
Add a hint for browserify transforms
  • Loading branch information
contra committed Apr 27, 2015
2 parents bcf486f + 8701b9d commit 4e2a319
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/recipes/fast-browserify-builds-with-watchify.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ var customOpts = {
debug: true
};
var opts = assign({}, watchify.args, customOpts);
var b = watchify(browserify(opts));
var b = watchify(browserify(opts));

// add transformations here
// i.e. b.transform(coffeeify);

gulp.task('js', bundle); // so you can run `gulp js` to build the file
b.on('update', bundle); // on any dep update, runs the bundler
Expand Down

0 comments on commit 4e2a319

Please sign in to comment.