Background Images
Opened this issue · 3 comments
Deleted user commented
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?
welcome commented
Thanks for opening this issue, a maintainer will get back to you shortly! Be sure to follow the issue template! 🤓
juliomrqz commented
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.
golubvladimir commented
Try this
background-image: url("~@/assets/arrow.svg");