Skip to content

Commit

Permalink
try improving build performance by removing unused webpack loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
josemigallas committed Mar 24, 2023
1 parent 2975fbc commit 5d5e5ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/webpack/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5d5e5ef

Please sign in to comment.