From 3236ff133938542360e17fd593995b6e9aecb389 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Tue, 4 Jul 2023 18:06:31 +0200 Subject: [PATCH] minify --- apps/remix-ide/webpack.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/remix-ide/webpack.config.js b/apps/remix-ide/webpack.config.js index ee9f810553..97eab162e2 100644 --- a/apps/remix-ide/webpack.config.js +++ b/apps/remix-ide/webpack.config.js @@ -130,6 +130,10 @@ module.exports = composePlugins(withNx(), withReact(), (config) => { new CssMinimizerPlugin(), ]; + // minify code + if(process.env.NX_DESKTOP_FROM_DIST) + config.optimization.minimize = true + config.watchOptions = { ignored: /node_modules/ }