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