-
-
Notifications
You must be signed in to change notification settings - Fork 319
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
[Bug]: remove whitespaces out of comments unexpectedly #1509
Comments
|
It's an interesting situation, I think it's the first time someones reports using the comment remover without the rest of cssnano. Why do you want to only remove comments without also minifying the CSS? It might be unfixable if the AST does not contain enough information about these spaces. |
Yes indeed, I am not a native english speaker and I wrote with my live skills.
Yes, I can use CSSnano. But in my (surely questionable) NPM setup, I'm using Esbuild for minification. |
Describe the bug
I installed the package
postcss-discard-comments
in my existing NPM project.It removed comments as I wanted but it also removed whitespaces out of comments unexpectedly.
I have not installed cssnano, actually the postcss-discard-comments's NPM page give the link to cssnano's github page.
Expected behaviour
I expected it removes comments without removing whitespaces out of comments.
The best thing in my opinion to constat the bug and view my configuration is my commit that revealed the issue.
Steps to reproduce
May run for the first time
postcss-discard-comments
in an existing NPM project.Version
6.0.0
Preset
(no preset)
Environment
Package details
Additional context
No response
The text was updated successfully, but these errors were encountered: