diff --git a/webpack.config.js b/webpack.config.js index 6714427680..ba87977825 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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: {