Closed justinmetros closed 10 years ago
Couldn't you just put quotes around the URL?
.class {
background-image: url("{{ 'my_image.jpg' | asset_url }}");
}
That'll do it! Really need to be liberal with the quotes, the following gets it through the sass compiler and autoprefixer with no issues.
.class{
background-image: url( "#{'{{ "my_image.jpg" | asset_url }}'}" );
}
Thank for your time!
Not sure if an actual issue, per say - but running into a situation with liquid variables in CSS. For example, in SCSS, variables are interpolated to get through the compiler:
But then autoprefixer doesn't like it when it sees those variables, and throws an error on CSS like:
Wondering if there are any known workarounds to get by this. Thanks in advance! Love this plugin!