Skip to content

Commit

Permalink
feat(bro): pass watchify options from config file
Browse files Browse the repository at this point in the history
Closes #124
andrewswerlick-hmn authored and nikku committed May 20, 2015

Verified

This commit was signed with the committer’s verified signature. The key has expired.
jeff-mccoy Megamind
1 parent 5d75d41 commit 7480a07
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/bro.js
Original file line number Diff line number Diff line change
@@ -162,8 +162,12 @@ function Bro(bundleFile) {
log.warn('The prebundle hook got removed in favor of configure');
}

if ('watchify' in browserifyOptions) {
log.warn('Add watchify configuration in its own root level node, not as a child of browserify');
}


var w = watchify(browserify(browserifyOptions));
var w = watchify(browserify(browserifyOptions), config.watchify || {});
w.setMaxListeners(Infinity);

_.forEach(bopts.plugin, function(p) {

0 comments on commit 7480a07

Please sign in to comment.