blunt1337 / pixi-svg-loader

Use your SVG graphic files with Pixi and webpack.
Apache License 2.0
28 stars 5 forks source link

Loading of remote SVGs? #5

Open julianrubisch opened 6 years ago

julianrubisch commented 6 years ago

More of a feature request/question, not so much an issue.

I'd like to be able to load SVGs that are hosted on an external CDN. How would I go about doing that? I tried https://github.com/roneyrao/remote-webpack-plugin, but it seem's like that one's not webpack4 ready.

I'd be happy to contribute, if I can.

blunt1337 commented 6 years ago

Hello, My loader parse svg, and convert them to javascript code. So if you want to use it on dynamic svg files, you should rewrite the loader to be used in the browser. My code already run in phantomjs, so you juste need to remove phantomjs, and change how the result is used.