Define Angular CLI globals to support tree shaking (#1541)
This commit is contained in:
parent
9bb004923c
commit
d6c181c997
|
@ -250,6 +250,13 @@ const webpackConfig = {
|
|||
new TerserPlugin({
|
||||
terserOptions: {
|
||||
safari10: true,
|
||||
// Replicate Angular CLI behaviour
|
||||
compress: {
|
||||
global_defs: {
|
||||
ngDevMode: false,
|
||||
ngI18nClosureMode: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
}),
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue