Skip to content
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

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

Open
JodoZT opened this issue Feb 1, 2023 · 1 comment

Comments

@JodoZT
Copy link

JodoZT commented Feb 1, 2023

value: value.replace(/\binitial\b/g, rule.initial)

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.

@JodoZT JodoZT changed the title The rule replaces keywords in normal url in background-image with clean value The rule replaces keywords in normal url in background-image with initial value Feb 1, 2023
@maximkoretskiy
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants