Skip to content

Commit

Permalink
Fixes #16
Browse files Browse the repository at this point in the history
originally fixed in 1225c5f
  • Loading branch information
chmontgomery committed Sep 29, 2014
1 parent bc4b16c commit bba66bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/watch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ module.exports = function (opts) {
if (!opts.dest) {
throw new gutil.PluginError('gulp-bundle-assets', 'dest option is required when watching');
}

try {
configFile = require(opts.configPath);
config = new ConfigModel(configFile, opts);
} catch (e) {
throw new gutil.PluginError('gulp-bundle-assets', 'Failed to parse config file');
}

cache.set('config', config);

streamBundlesWatch(config);
Expand Down

0 comments on commit bba66bf

Please sign in to comment.