In my CSS file I’m setting a background image using the css property background: url('my-image')
.
It works just find when I’m using webpack to watch my file, but when I compile using npm run build
, the path to the image is incorrect. Instead of using my theme name, it still references sage.
The final output is http://mysite.dev/app/themes/sage/dist/images/img.jpg
. Everything else works, only whenever I try to reference an image through my CSS is the file path incorrect. Any ideas? Thanks in advance.