borodean / postcss-assets

An asset manager for PostCSS
MIT License
537 stars 32 forks source link

`background-image` support? #57

Closed FezVrasta closed 8 years ago

FezVrasta commented 8 years ago

Should it work if I use background-image: inline(my.png)?

It doesn't converts inline in this case...

FezVrasta commented 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...

borodean commented 8 years ago

@FezVrasta does the plugin logs anything into the terminal?

FezVrasta commented 8 years ago

sorry it was a problem with my build :/

wesleyboar-fka-iosulfur commented 7 years ago

@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:

* I am accustomed to postcss-url which works off of url() directly.

FezVrasta commented 7 years ago

Nothing, there was some additional compiler that was replacing mine.