Browse Source

Define Angular CLI globals to support tree shaking (#1541)

pull/1560/head
Oscar Hinton 4 years ago committed by GitHub
parent
commit
d6c181c997
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      webpack.config.js

7
webpack.config.js

@ -250,6 +250,13 @@ const webpackConfig = {
new TerserPlugin({ new TerserPlugin({
terserOptions: { terserOptions: {
safari10: true, safari10: true,
// Replicate Angular CLI behaviour
compress: {
global_defs: {
ngDevMode: false,
ngI18nClosureMode: false,
},
},
}, },
}), }),
], ],

Loading…
Cancel
Save