Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: enhance TerserPlugin configuration for optimized compression and mangling #65

Merged
merged 1 commit into from
Nov 30, 2024

Conversation

warnyul
Copy link
Owner

@warnyul warnyul commented Nov 30, 2024

  • 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.

…d mangling

- 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.
Copy link

Visit the preview URL for this PR (updated for commit 20d6db5):

https://bvarga-fe600--pr65-terser-opt-f6wi2k9q.web.app

(expires Sat, 07 Dec 2024 21:07:48 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: a3b1098a9eaf0750a134a339972f1df2a3969a8d

@warnyul warnyul merged commit b1e348f into main Nov 30, 2024
2 checks passed
@warnyul warnyul deleted the terser-opt branch November 30, 2024 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant