commit f2b2fb06cc15c2350b2f950d23cb78d82d7e49f8
parent c55055e54eef6a66f03bf6f6e04149894e29d6fb
Author: Konstantin Tarkus <hello@tarkus.me>
Date: Fri, 26 Feb 2016 19:32:13 +0300
Fix a bug in webpack.config.js preventing shared plugins to be used
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/tools/webpack.config.js b/tools/webpack.config.js
@@ -120,6 +120,7 @@ const clientConfig = extend(true, {}, config, {
// http://webpack.github.io/docs/configuration.html#devtool
devtool: DEBUG ? 'cheap-module-eval-source-map' : false,
plugins: [
+ ...config.plugins,
new webpack.DefinePlugin({ ...GLOBALS, 'process.env.BROWSER': true }),
new AssetsPlugin({
path: path.join(__dirname, '../build'),
@@ -174,6 +175,7 @@ const serverConfig = extend(true, {}, config, {
},
devtool: 'source-map',
plugins: [
+ ...config.plugins,
new webpack.DefinePlugin({ ...GLOBALS, 'process.env.BROWSER': false }),
new webpack.BannerPlugin('require("source-map-support").install();',
{ raw: true, entryOnly: false }),