diff --git a/webpack.config.js b/webpack.config.js index a1ae0394d4..8c6a51a8a2 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -250,6 +250,13 @@ const webpackConfig = { new TerserPlugin({ terserOptions: { safari10: true, + // Replicate Angular CLI behaviour + compress: { + global_defs: { + ngDevMode: false, + ngI18nClosureMode: false, + }, + }, }, }), ],