maximkoretskiy / postcss-initial

PostCSS plugin to fallback initial keyword
MIT License
187 stars 11 forks source link

The rule replaces keywords in normal url in background-image with initial value #52

Open JodoZT opened 1 year ago

JodoZT commented 1 year ago

https://github.com/maximkoretskiy/postcss-initial/blob/8eaf8fbff8d2a263acc0e0c1ece84f8011217ae5/lib/rules-fabric.js#L70

For example I have the following rule:

.test {
    background-image: url("./initial-image/foo.png");
}

This will be replaced with:

.test {
    background-image: url("./none-image/foo.png");
}

This causes error.

maximkoretskiy commented 1 year ago

Hey! Thank you for posting. I can look into in a week or so. If you need fast solution please create a PR.