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

Allow to provide minifier (Terser) options #23

Open
bootleq opened this issue Dec 10, 2022 · 0 comments
Open

Allow to provide minifier (Terser) options #23

bootleq opened this issue Dec 10, 2022 · 0 comments

Comments

@bootleq
Copy link

bootleq commented Dec 10, 2022

Hi, I have some scripts use return on top level thus can't be converted.

Then I find we can tell Terser to enable bare_returns to accept it.
https://github.com/terser/terser#parse-options

Would it be good to add a CLI option like --minify to delegate to Terser?

I am willing to prepare a PR, maybe introduce yargs to help handling the options.

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

No branches or pull requests

1 participant