Define Angular CLI globals to support tree shaking (#2450)
This commit is contained in:
parent
b54cc6ec8a
commit
0cd7b4dff5
|
@ -125,6 +125,15 @@ const config = {
|
||||||
minimizer: [
|
minimizer: [
|
||||||
new TerserPlugin({
|
new TerserPlugin({
|
||||||
exclude: [/content\/.*/, /notification\/.*/],
|
exclude: [/content\/.*/, /notification\/.*/],
|
||||||
|
terserOptions: {
|
||||||
|
// Replicate Angular CLI behaviour
|
||||||
|
compress: {
|
||||||
|
global_defs: {
|
||||||
|
ngDevMode: false,
|
||||||
|
ngI18nClosureMode: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
splitChunks: {
|
splitChunks: {
|
||||||
|
|
Loading…
Reference in New Issue