You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You need to build and run project, dev mode is working as expected.
Describe the bug
When we are trying to connect font from package (@fontsource/ packages as example, also works with @mdi/font), vite-bridge generating fonts. That's ok, but in client[hash].js font urls are correct, but also generated HTML file contains the fonts in <head> with broken link, containing __NUXT_BASE__ in url.
We expect, that output files will have correct font urls. Also we expect, that fonts will not be loaded twice.
Additional context
Logs
No response
The text was updated successfully, but these errors were encountered:
AndreyYolkin
changed the title
bridge-vite: fonts are wrongly duplicated after build
bridge-vite: fonts are wrongly duplicating after build
Aug 23, 2022
Environment
Windows_NT
v16.14.2
2.16.0-27616340.013f051b
npm@8.16.0
vite
head
,css
,bridge
,serverHandlers
,devServerHandlers
,buildModules
-
()
,@nuxt/bridge@3.0.0-27672061.a645f7f
Reproduction
https://github.com/AndreyYolkin/nuxt-bridge-fonts-vite
You need to build and run project, dev mode is working as expected.
Describe the bug
When we are trying to connect font from package (@fontsource/ packages as example, also works with @mdi/font), vite-bridge generating fonts. That's ok, but in client[hash].js font urls are correct, but also generated HTML file contains the fonts in
<head>
with broken link, containing__NUXT_BASE__
in url.We expect, that output files will have correct font urls. Also we expect, that fonts will not be loaded twice.
Additional context
Logs
No response
The text was updated successfully, but these errors were encountered: