We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<!--#-->
removeComments: true removes all comments except those that start with #.
removeComments: true
#
If this is intentional behaviour, it would be neat if we had a flag to override it.
v7.2.0
Firefox, Chrome, Safari
https://stackblitz.com/edit/stackblitz-starters-trumlr?file=index.js
No response
No
The text was updated successfully, but these errors were encountered:
Yes, see the ignoreCustomComments setting, that you can change.
ignoreCustomComments
https://github.com/terser/html-minifier-terser?tab=readme-ov-file#options-quick-reference
So in your case removing , /^\s*#/ should work.
, /^\s*#/
Sorry, something went wrong.
No branches or pull requests
What happened?
removeComments: true
removes all comments except those that start with#
.If this is intentional behaviour, it would be neat if we had a flag to override it.
Version
v7.2.0
What browsers are you seeing the problem on?
Firefox, Chrome, Safari
Link to reproduce
https://stackblitz.com/edit/stackblitz-starters-trumlr?file=index.js
Relevant log output
No response
Willing to submit a PR?
No
The text was updated successfully, but these errors were encountered: