I'm using create-react-app to build an interface for an Electron app. As such, the built React app essentially runs locally rather than from a server.
Naturally I have a load of SCSS being built by React, but as part of the build process my paths are changed from url(../images/my_img.jpg)
to url(/static/media/my_img.xyz.jpg)
Obviously for a server environment where files would be stored at the root this is fine, but because my files are running locally the browser (Electron) can't locate the images.
I have set "homepage": "./"
in package.json but this has had no effect.
Is there a way to ensure that built CSS uses relative paths rather than absolute?