-
Notifications
You must be signed in to change notification settings - Fork 32
Cachebusting with Grunt #56
Comments
@nhall are you using .image {
background: resolve('image.png');
} |
@borodean - No, thank you! This was my issue. |
@borodean does because there is nothing in the readme that states that, and every tutorial that I found online is wrong https://css-tricks.com/images-in-postcss/#article-header-id-4 http://www.developerdrive.com/2017/09/using-postcss-with-images/ |
@UziTech those tutorials are all wrong regarding that aspect. My bet is that they've just copy-pasted the mistake from each other. Cache is busted for the |
Is there a reason it doesn't work with |
@UziTech during its early days, PostCSS Assets was working exclusively with For instance, this was resolved as either modern-day body {
background-image: url('picture.jpg');
} These were the modern-day body {
width: url('picture.jpg');
height: url('picture.jpg');
background-size: url('picture.jpg');
} However, this behavior was discarded as early as in version 1.0.0 to allow developers more fine-grained control of what they wanted to achieve: #1. Since then, the idea behind its API is simple: provide a set of "functions" doing what developer asks them to do, like Compass or rails-sass-images do. Basically, this plugin emerged as a JavaScript replacement for those in PostCSS. |
Though, I actually love the "auto-magical" tools out there so if someone suggests a solid way to implement it for PostCSS Assets I'd be happy to collaborate. |
I'm having issues using the cachebuster option. I know I have things set up correctly because I can use the other options (inlining, dimensions) successfully. Here are my settings:
And here's my CSS:
Am I missing something here?
The text was updated successfully, but these errors were encountered: