Commit b1e348f
authored
perf: enhance TerserPlugin configuration for optimized compression and mangling (#65)
- Improved TerserPlugin compression by enabling `arguments` compression and increasing `passes` to 3 for better code optimization.
- Enabled `toplevel` mangling to reduce file size by optimizing top-level scope variables.
- Added `nameCache` to ensure consistent mangling between builds, improving cache performance.
- Maintained `sourceMap` support for easier debugging of minified code.1 parent 81a47cc commit b1e348f
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
203 | 207 | | |
204 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
205 | 211 | | |
206 | 212 | | |
207 | 213 | | |
| |||
0 commit comments