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

This commit is contained in:
Oscar Hinton 2022-03-22 09:58:17 +01:00 committed by GitHub
parent b54cc6ec8a
commit 0cd7b4dff5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -125,6 +125,15 @@ const config = {
minimizer: [
new TerserPlugin({
exclude: [/content\/.*/, /notification\/.*/],
terserOptions: {
// Replicate Angular CLI behaviour
compress: {
global_defs: {
ngDevMode: false,
ngI18nClosureMode: false,
},
},
},
}),
],
splitChunks: {