mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 00:48:10 +08:00

In an attempt to improve build performance, 9db5eafb mistakenly removed minimization for some of our JS assets, leading to a significant increase in the size of some files. This commit restores minimization to those files. To avoid regressing on the build time improvements, this commit switches to using the `webpack-terser-plugin`'s "swcMinify" option. On an entry-level 1CPU/1GB-ram/2GB-swap DO droplet, this commit increases build time from ~16 minutes to ~18 minutes. Co-authored-by: Alan Guo Xiang Tan <gxtan1990@gmail.com>