-
Notifications
You must be signed in to change notification settings - Fork 81
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
JS Remove Comments setting is missing #189
Comments
Because the current default functionality is to always remove them, right? And you want the option to keep them? |
Well, it's always removing it for CSS and JS, yet you give an option to keep HTML comments. Seems reasonable to me to have the option to keep them for JS and CSS as well. Not that I need them, just think for consistency's sake. Sometimes I do include some stuff that may have meaning to debug things, that may otherwise be removed. |
For CSS you can use |
I see, couldn't find that :-) What's an important comment? |
Comments that start with Not an official syntax but commonly adopted |
This has uncovered a bug whereby prologue directives are broken by there being preceeding important comments in the block. This needs fixing, might as well be along with this ticket as this ticket will otherwise only reintroduce the same issue with non-important comments |
Added a PR for this, please have a play and see if this meets your needs |
Just came back to this seeing as the PR hasn't been merged yet. Is there anything you want me to check, confirm? |
Yeah, can you test the PR meets your needs? |
I thought the PR is to fix unrelated issues no? |
It fixes both, i hope! |
There is a setting called RemoveComments for HTML, but for CSS/JS those are missing. Maybe it should be an option for those.
Although this brings special kinds of problems like it does for VSCode where it's not able to format this properly.
The text was updated successfully, but these errors were encountered: