feat-agency / vite-plugin-webfont-dl

⚡ Webfont Download Vite Plugin - Make your Vite site load faster
MIT License
302 stars 11 forks source link

Support for CDN's which use relative URLS #17

Closed ThaDaVos closed 2 years ago

ThaDaVos commented 2 years ago

It seems it breaks when relative urls are used, as an example: https://cdn.jsdelivr.net/npm/@mdi/font@7.x/css/materialdesignicons.min.css Uses a relative url to the font files like url("../fonts/materialdesignicons-webfont.eot?v=7.0.96") which seems to break as the full relative path is just copied over to the webfonts.css - but vite than fails to load these - at least during HMR

0xb4lint commented 2 years ago

Thanks @ThaDaVos! It's fixed in v3.1.2.

ThaDaVos commented 2 years ago

Thanks for the fix, will try to check this Monday! Maybe, you can also look into the issue of no HTML file?

ThaDaVos commented 2 years ago

https://github.com/feat-agency/vite-plugin-webfont-dl/issues/15