excellentingenuity / laravel-mix-vue-svgicon

Laravel Mix extension that provides loading svgs as a vue component named icon, compatible with Adam Wathan's Blade extension.
MIT License
20 stars 3 forks source link

load the svg image from network #3

Closed xoxoj closed 5 years ago

xoxoj commented 5 years ago

ex. if I want load the svg image from url, as https://xxx.xxx.com/file/some.svg, how can I do.

thanks.

excellentingenuity commented 5 years ago

I am sorry but the way this plugin is designed to work with Laravel mix, which is a command line tool for local asset compilation, getting an svg from a url will not work. However, if you before calling this plugin called one of your own that fetched the svg's and placed them in a directory locally it could be done that way.