-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
path error during build #45
Comments
try using |
Works but sounds like temporal solution. Also I have another weird issue. @font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("fonts/Inter-Regular.woff2") format("woff2"),
url("fonts/Inter-Regular.woff") format("woff");
}
@font-face {
font-family: 'Inter';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url("fonts/Inter-Italic.woff2") format("woff2"),
url("fonts/Inter-Italic.woff") format("woff");
} After build: @font-face {
font-family: Inter;
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(/Inter-Regular.04154619.woff2) format("woff2"),
url(fonts/Inter-Regular.woff) format("woff");
}
@font-face {
font-family: Inter;
font-style: italic;
font-weight: 400;
font-display: swap;
src: url(fonts/Inter-Italic.woff2) format("woff2"),
url(/Inter-Italic.28183427.woff) format("woff");
} Also if there is a question mark on font url build fails:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm using font face like that:
It is work as expected on dev. But production build fails.
[Error: ENOENT: no such file or directory, open 'C:\fonts\myfont.woff2'] {
errno: -4058,
code: 'PLUGIN_ERROR',
syscall: 'open',
path: 'C:\fonts\myfont.woff2',
pluginCode: 'ENOENT',
plugin: 'vite:css',
hook: 'transform',
id: 'C:\Users\sib\Desktop\dev\vitetailwind\tailwind.css',
watchFiles: [
'C:\Users\sib\Desktop\dev\vitetailwind\index.html',
'C:\Users\sib\Desktop\dev\vitetailwind\node_modules\vue\dist\vue.runtime.esm-bundler.js',
'C:\Users\sib\Desktop\dev\vitetailwind\App.vue',
'C:\Users\sib\Desktop\dev\vitetailwind\App.vue?vue&type=script&lang.js',
'C:\Users\sib\Desktop\dev\vitetailwind\App.vue?vue&type=template&id=add54c12',
'C:\Users\sib\Desktop\dev\vitetailwind\App.vue?vue&type=style&index=0&lang=postcss.css',
'C:\Users\sib\Desktop\dev\vitetailwind\tailwind.css'
]
The text was updated successfully, but these errors were encountered: