Closed FezVrasta closed 8 years ago
Ok actually it doesn't seem to work at all...
I enable it with:
require('postcss-assets')({
loadPaths: ['src/images/']
})
My CSS are at src/css/
and my images at src/images
.
I try any of the postcss-assets features like:
background: resolve("icons/user.png")
(the icon is in src/images/icons/user.png
)
But once compiled, I still see
background: resolve("icons/user.png")
Autoprefixer works so I doubt is a problem of my webpack build script...
@FezVrasta does the plugin logs anything into the terminal?
sorry it was a problem with my build :/
@FezVrasta, what was the problem with your build? Maybe others have the same problem and do not know. I was also unable to make this plugin have an effect as you described.
P.S. The plugin does not log anything to the terminal.
Updated
I had the following problems at different times:
url()
instead of resolve()
*url()
instead of inline()
** I am accustomed to postcss-url which works off of url()
directly.
Nothing, there was some additional compiler that was replacing mine.
Should it work if I use
background-image: inline(my.png)
?It doesn't converts
inline
in this case...