-
Notifications
You must be signed in to change notification settings - Fork 61
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
Optionally preserve #94
Comments
Currently, if it is an invalid declaration, it will just fallback and work as expected.
Input: :root {
--red: #f00;
--pl: 15px;
}
.box {
color: color(var(--red) a(90));
padding-left: var(--pl);
} Current output running just :root {
--red: #f00;
--pl: 15px;
}
.box {
color: color(#f00 a(90));
color: color(var(--red) a(90));
padding-left: 15px;
padding-left: var(--pl);
} |
@MadLittleMods I did want just ignore some rules for preserve. For example not preserve line for color function. Because in Chrome its line work, but not correctly. And I want delete source line and to stay only fallback. Also have many plugins that can't work with custom properties and throw error when try to parse options: {
preserve: [
true,
{
// some strings or regexp for ignore
}
]
} |
@ar53n So I can understand your use case better:
For reference on |
I too would like some sort of way to declare that a specific
|
My idea is to add an option to exclude only some variables. Because I have
postcss-color-function
plugin, I don't want preserve all these variables.For example I don't want preserve variables with color function.
Input:
Ideal/expected Result:
The text was updated successfully, but these errors were encountered: