From 7238d57354d6a1ed88cc59d0dd3118c62fad5e2a Mon Sep 17 00:00:00 2001 From: BryceLTaylor Date: Fri, 28 Jan 2022 16:56:46 -0500 Subject: [PATCH 1/2] webpack config make limit TerserPlugin to parallel: 4 --- webpack.config.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index 87a89ab73..6c704ad51 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -8,6 +8,7 @@ const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPl const CopyWebpackPlugin = require('copy-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); +const TerserPlugin = require('terser-webpack-plugin'); // PostCss const autoprefixer = require('autoprefixer'); @@ -141,7 +142,14 @@ module.exports = { minChunks: pageRoutes.length // Extract only chunks common to all html pages } } - } + }, + minimize: true, + minimizer: [ + new TerserPlugin({ + parallel: 4 + }) + ] + }, plugins: [ new MiniCssExtractPlugin(), From 98a0bef30965f421fa0598a97c7edcd2cb47708a Mon Sep 17 00:00:00 2001 From: BryceLTaylor Date: Tue, 1 Feb 2022 14:24:13 -0500 Subject: [PATCH 2/2] remove minimize: true from webpack config --- webpack.config.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 6c704ad51..bb2678140 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -143,13 +143,11 @@ module.exports = { } } }, - minimize: true, minimizer: [ new TerserPlugin({ parallel: 4 }) ] - }, plugins: [ new MiniCssExtractPlugin(),