Paratii-Video / paratii-mediaplayer

v0.0.2 of the Paratii Player, with a sleeker UI, plugin-oriented architecture
http://paratii.video
GNU General Public License v3.0
15 stars 2 forks source link

Fix SVG loading #12

Closed bent0b0x closed 6 years ago

bent0b0x commented 6 years ago

@eliawk it was a small thing that was wrong. In order for resolve-url-loader to work, we needed to be using relative urls. Previously, we had absolute urls (e.g. /public/img/<filename>svg). The reason it was working in the demo is because these were valid urls to be loaded by the browser. The demo app was not using data urls at all (but it is now and so is paratii-player!).

To fix this, I moved the images in to the src directory and reference them in .scss files via a relative url import. Now this gets picked up by the loaders and works.

I also removed the public/ dir from the build process as it is no longer being used for anything.