Created
June 3, 2020 07:58
-
-
Save ganezasan/1b0ffa09386c331d1f77ea568448f75a to your computer and use it in GitHub Desktop.
Select the parallel setting for fixing the OOM issue in webpack4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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