diff --git a/webpack.config.js b/webpack.config.js index 53e98b066805d..04b7172e1496e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -142,9 +142,7 @@ const config = { // Create RTL files with a -rtl suffix new WebpackRTLPlugin( { suffix: '-rtl', - minify: { - safe: true, - }, + minify: process.env.NODE_ENV === 'production' ? { safe: true } : false, } ), new webpack.LoaderOptionsPlugin( { minimize: process.env.NODE_ENV === 'production',