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

Relative paths to a picture in selects: after and: before #70

Open
KimonoVIP opened this issue Mar 20, 2019 · 3 comments
Open

Relative paths to a picture in selects: after and: before #70

KimonoVIP opened this issue Mar 20, 2019 · 3 comments

Comments

@KimonoVIP
Copy link

When I use @import local files in my shared file, the relative paths are broken in the code taken from the included file — the points are deleted. This happens only for selectors: after
Here is an example of what is happening:
style.css
      @import url ('main.css');

The main.css code is initially:
.element: after {
      background: url ("../ img / icons / pic.svg");
}

And the output in the style.css file is this:
.element: after {
      background: url (img / icons / pic.svg);
}
That is, relative paths have been destroyed, and the image request returns 404 error!
With what it can be connected?

@scniro
Copy link
Owner

scniro commented Apr 23, 2019

@KimonoVIP I pushed some changes regarding long standing issues in #52 that sound similar to your issue. Can you please update your plugin to at least version 4.1.1 and let me know if the problem persists? Thanks!

@KimonoVIP
Copy link
Author

KimonoVIP commented Apr 24, 2019

@scniro Updated to version 4.2.0 - it did not help. Anyway, the path to the background image after the assembly is distorted and does not work. So far I have been using this method (

.option::before {
/* clean-css ignore:start /
background: url("../img/check.svg") center no-repeat;
/
clean-css ignore:end */
}

@mydansun
Copy link

look at clean-css/clean-css#1100

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

No branches or pull requests

3 participants