Permalink
Browse files

suppress prod build warnings

  • Loading branch information...
1 parent 3a3171b commit 7c60919ce11ccd11feb87ffb843d5835a191eb1c @mseemann committed Oct 12, 2016
Showing with 6 additions and 0 deletions.
  1. +6 −0 config/webpack/webpack.common.js
@@ -73,6 +73,12 @@ module.exports = {
},
plugins: [
+ // should fix: https://github.com/angular/angular/issues/11580
+ new webpack.ContextReplacementPlugin(
+ // The (\\|\/) piece accounts for path separators in *nix and Windows
+ /angular(\\|\/)core(\\|\/)(esm(\\|\/)src|src)(\\|\/)linker/,
+ util.root('src')
+ ),
new webpack.optimize.CommonsChunkPlugin({
name: ['app', 'vendor', 'polyfills']
}),

0 comments on commit 7c60919

Please sign in to comment.