-
Notifications
You must be signed in to change notification settings - Fork 187
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
csso v5 whitespace might be broken #447
Comments
I won't to change the behaviour, since that's a valid CSS in the most compact form what is the main purpose of CSSO. I'm sorry this breaks your scenario and is inconvenient in your case. However, your approach looks unstable to me and could be improved. It's expected that CSSO should be last in a CSS transformation pipeline. Any placeholder substitutions should be applied before a minification since things like As a workaround, you can use comments or whitespaces around a real values. I have not found where you perform placeholder substitution in CSS, but I saw that you add comments when substituting values in JavaScript source. I hope it will work for you. |
I totally understand that and aware of the limitations. That system is very old and I will find a workaround. I just wanted to make sure I don't miss any flag or no flag will be add from your side. Keep it spec safe. |
Currently CSSTree generator has 2 modes for output: |
input
I know that in this example the value of border is not valid css value.
But in our case we have a post-process that will replace the "PLACEHOLDER" with a real value later and in the new version of csso it removes the space before the
"
it will become
I know it's related to
css-tree
upgrade, any chances that we could preserve this space?The text was updated successfully, but these errors were encountered: