-
Notifications
You must be signed in to change notification settings - Fork 19
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
css-purge always minifies, no matter which trim option is enabled #26
Comments
Hi there @COLABORATI, can you describe your setup to me? Are you using it via a plugin or as a library, or local or global command line? |
I think I can reproduce this issue. In my setup I'm using Here is my setup:
The css-purge options don't change result, doesn't matter which ones I choose. (e.g. last rule semicolons always get removed)
Which is odd, since it's a file in your package and I don't use it anywhere. I'm using |
Hmm, I'll have to test and have a look at it, kinda busy right now though, lemme see if I can get to it this weekend. |
Hey guys, finally found the issue, it was the default vars, my bad, sorted. You should be able to just update gulp-css-purge else uninstall and reinstall. |
I'm seeing this with css-purge 3.0.13 — just the plain node module, from the command line. I'm running CSS-PURGE against the output of my SCSS compilation, with the intent of looking over the diffs to identify duplications etc. and then going back to the SCSS source to fix them. Eliminating comments and whitespace and newlines and extra semicolons makes this difficult. I tried explicitly specifying the default (?) config file, which appears to disable Per the Am I misunderstanding the config? Am I doing something else wrong? Is the available node module out of date? |
@dmolesUC3 thanks for the heads up, I believe I sorted out the issue. |
I tried all combinations of the trim options, no matter what I do, the resulting file is always minified - I do not want that to happen, as I still would like to edit the resulting files sometimes, but the options that look like should be used to disable that (trimming of whitespace and newline chars) do not seem to work at all.
The text was updated successfully, but these errors were encountered: