This commit is contained in:
Sung-Hyun Kang 2025-01-15 15:38:18 -06:00
parent 842d821243
commit 6c6d03946e

View File

@ -248,7 +248,7 @@ module.exports = function (_env = {}, argv = {}) {
new TerserPlugin({ new TerserPlugin({
terserOptions: { terserOptions: {
// These options increase our initial bundle size by ~5% but the builds are significantly faster and won't run out of memory // These options increase our initial bundle size by ~5% but the builds are significantly faster and won't run out of memory
// compress: false, compress: true,
mangle: { mangle: {
keep_fnames: true, keep_fnames: true,
keep_classnames: true, keep_classnames: true,
@ -256,17 +256,17 @@ module.exports = function (_env = {}, argv = {}) {
}, },
}), }),
], ],
splitChunks: { // splitChunks: {
chunks: "all", // chunks: "all",
cacheGroups: { // cacheGroups: {
fluentIcons: { // fluentIcons: {
test: /[\\/]node_modules[\\/]@fluentui[\\/](font-icons-mdl2|react-icons)/, // test: /[\\/]node_modules[\\/]@fluentui[\\/](font-icons-mdl2|react-icons)/,
name: "fluent-icons", // name: "fluent-icons",
chunks: "all", // chunks: "all",
enforce: true, // enforce: true,
}, // },
}, // },
}, // },
}, },
watch: false, watch: false,
// Hack since it is hard to disable watch entirely with webpack dev server https://github.com/webpack/webpack-dev-server/issues/1251#issuecomment-654240734 // Hack since it is hard to disable watch entirely with webpack dev server https://github.com/webpack/webpack-dev-server/issues/1251#issuecomment-654240734