Skip to content

Commit 45d6eaa

Browse files
odahcamMarkPieszak
authored andcommitted
fix(webpack): moved context replacement plugin to dev builds only (#545)
closes #543
1 parent 7252a45 commit 45d6eaa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

webpack.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ module.exports = (env) => {
8989
manifest: require('./ClientApp/dist/vendor-manifest.json'),
9090
sourceType: 'commonjs2',
9191
name: './vendor'
92-
}),
92+
})
93+
].concat(isDevBuild ? [
9394
new webpack.ContextReplacementPlugin(
9495
// fixes WARNING Critical dependency: the request of a dependency is an expression
9596
/(.+)?angular(\\|\/)core(.+)?/,
@@ -102,7 +103,7 @@ module.exports = (env) => {
102103
path.join(__dirname, 'src'),
103104
{}
104105
)
105-
].concat(isDevBuild ? [] : [
106+
] : [
106107
// new webpack.optimize.UglifyJsPlugin({
107108
// compress: false,
108109
// mangle: false

0 commit comments

Comments
 (0)