I have a background image in jpg
format that I’ve been using via css for a background image. I’ve converted the image to webp
format. I now want to use that image for the background. I changed my css to point to the new image.
However, webpack crashes when trying to build my app. It would appear it doesn’t know what to do with the webp
image reference. And I don’t know what to do with Webpack to tell it how to handle the image.
Has anyone done this? Can someone help me with the code to tell Webpack what to do with webp
images?