Skip to content

Commit

Permalink
added browserify transformation hint
Browse files Browse the repository at this point in the history
  • Loading branch information
grmlin committed Apr 27, 2015
1 parent 439fdb4 commit 8701b9d
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)); // add transformations here, see https://github.com/substack/watchify/issues/187#issuecomment-89687576
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 8701b9d

Please sign in to comment.