diff --git a/webpack.config.js b/webpack.config.js index 02ee879f..6c348162 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -89,7 +89,8 @@ module.exports = (env) => { manifest: require('./ClientApp/dist/vendor-manifest.json'), sourceType: 'commonjs2', name: './vendor' - }), + }) + ].concat(isDevBuild ? [ new webpack.ContextReplacementPlugin( // fixes WARNING Critical dependency: the request of a dependency is an expression /(.+)?angular(\\|\/)core(.+)?/, @@ -102,7 +103,7 @@ module.exports = (env) => { path.join(__dirname, 'src'), {} ) - ].concat(isDevBuild ? [] : [ + ] : [ // new webpack.optimize.UglifyJsPlugin({ // compress: false, // mangle: false