setting compress true

This commit is contained in:
Sung-Hyun Kang 2025-01-16 21:57:41 -06:00
parent 6c6d03946e
commit b9c3936ded

View File

@ -243,12 +243,12 @@ module.exports = function (_env = {}, argv = {}) {
extensions: [".tsx", ".ts", ".js"], extensions: [".tsx", ".ts", ".js"],
}, },
optimization: { optimization: {
minimize: mode === "production" ? true : false, minimize: true,
minimizer: [ minimizer: [
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: true, // compress: false,
mangle: { mangle: {
keep_fnames: true, keep_fnames: true,
keep_classnames: true, keep_classnames: true,
@ -266,6 +266,7 @@ module.exports = function (_env = {}, argv = {}) {
// enforce: true, // enforce: true,
// }, // },
// }, // },
// runtimeChunk: false,
// }, // },
}, },
watch: false, watch: false,