juliomrqz/nuxt-optimized-images

Background Images

Opened this issue · 3 comments

I noticed in the responsive-loader docs that CSS background images are supported. Is this true for the entirety of nuxt-optimized-images? Or is it mostly limited to src as in the examples given?

Thanks for opening this issue, a maintainer will get back to you shortly! Be sure to follow the issue template! 🤓

Hello, Brendan.

You can use any loader supported by nuxt-optimized-images in any component as long as webpack detects it. For CSS background images, you could try this nuxt/nuxt#2123.

Try this
background-image: url("~@/assets/arrow.svg");