Skip to content

Commit

Permalink
Merge branches 'w/2.8/bugfix/ui-build' and 'q/3250/2.7/bugfix/ui-buil…
Browse files Browse the repository at this point in the history
…d' into tmp/octopus/q/2.8
  • Loading branch information
bert-e committed Mar 30, 2021
3 parents 8560831 + 542efa0 + eaacb85 commit d5c693c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ui/config-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,19 @@ const setWebpackPerformance = () => (config) => {
return config;
};

/**
* After getting a lot of OOM issues while building the UI, we disabled terser parallelism
* Refs: https://github.com/timarney/react-app-rewired/issues/391#issuecomment-571954944
*/
const terserDisableParallelism = () => config => {
config.optimization.minimizer[0].parallel=false;
return config;
};

module.exports = override(
useBabelRc(),
useEslintRc(),
addWebpackPlugin(new CompressionPlugin()),
setWebpackPerformance(),
terserDisableParallelism()
);

0 comments on commit d5c693c

Please sign in to comment.