Closed maicol07 closed 2 years ago
Hello @maicol07. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with need reproduction
will be closed if they have no activity within 3 days.
Please provide a reproduction for this. I'm not sure how the webserver is set up, and how it interacts with the Vite dev server. It may be a misconfiguration somewhere, but it's hard to tell without the code for the project.
Describe the bug
Webfonts use the webserver URL and not the resources URL (the URL of the Vite server). For example:
My webserver is located at http://127.0.0.1:8000 My Vite server is located at http://localhost:3000 I use this icon webfont:
@mdi/font
Webfont is imported as
http://127.0.0.1:8000/node_modules/.pnpm/@mdi+font@5.9.55/node_modules/@mdi/font/fonts/materialdesignicons-webfont.woff2?v=5.9.55
instead ofhttp://127.0.0.1:3000/node_modules/.pnpm/@mdi+font@5.9.55/node_modules/@mdi/font/fonts/materialdesignicons-webfont.woff2?v=5.9.55
(note the port)Reproduction
@mdi/font
webfont.System Info
Used Package Manager
pnpm
Logs
Validations