Skip to content

Instantly share code, notes, and snippets.

@ganezasan
Created June 3, 2020 07:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ganezasan/1b0ffa09386c331d1f77ea568448f75a to your computer and use it in GitHub Desktop.
Save ganezasan/1b0ffa09386c331d1f77ea568448f75a to your computer and use it in GitHub Desktop.
Select the parallel setting for fixing the OOM issue in webpack4
const TerserPlugin = require('terser-webpack-plugin');
module.exports = {
optimization: {
minimizer: [
new TerserPlugin({
parallel: 2,
}),
],
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment