From 5d5e5efccb2ba68fb5478ac796d0cb90027fb2f4 Mon Sep 17 00:00:00 2001 From: josemigallas Date: Fri, 24 Mar 2023 18:21:22 +0100 Subject: [PATCH] try improving build performance by removing unused webpack loaders --- config/webpack/environment.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/webpack/environment.js b/config/webpack/environment.js index 9c7350c578..9ab8e0ddb1 100644 --- a/config/webpack/environment.js +++ b/config/webpack/environment.js @@ -38,4 +38,8 @@ Object.assign(fileLoader.use[0].options, { postTransformPublicPath: (p) => `window.rails_asset_host + ${p}` }); +// We don't use css modules, we can remove these loaders. +environment.loaders.delete('moduleCss') +environment.loaders.delete('moduleSaas') + module.exports = environment