Skip to content

Commit

Permalink
Concat LoaderOptionsPlugin to other webpack.common.config plugins ins…
Browse files Browse the repository at this point in the history
…tead of overwriting.
  • Loading branch information
pattisdr committed Nov 7, 2017
1 parent 726a646 commit b733aeb
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions webpack.dev.config.js
Expand Up @@ -2,10 +2,16 @@ var webpack = require('webpack');
var common = require('./webpack.common.config.js');
var assign = require('object-assign');

module.exports = assign(common, {
plugins: [
new webpack.LoaderOptionsPlugin({
debug: true
})
]

// Adding LoaderOptionsPlugin to plugins
var plugins = common.plugins.concat([
new webpack.LoaderOptionsPlugin({
debug: true,
})
]);

var config = assign(common, {
plugins: plugins
});

module.exports = config;

0 comments on commit b733aeb

Please sign in to comment.