Skip to content

Commit

Permalink
handle webpack-dev-server options (#116) (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
Partik Patel authored and danez committed Jan 27, 2017
1 parent 6abe2d2 commit cdf404e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/options/OptionHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ class OptionHelper {
this.fixPlugins(options, ns.concat([`${index}`, 'plugins']));
});
} else {
this.fixPlugins(obj, ns.concat(['plugins']));
if (obj.webpack) {
// handle webpack-dev-server options
this.fixPlugins(obj.webpack, ns.concat(['webpack', 'plugins']));
} else {
this.fixPlugins(obj, ns.concat(['plugins']));
}
}

return obj;
Expand Down

0 comments on commit cdf404e

Please sign in to comment.