Hi.
I'm trying import some icon fonts but they don't load after run dev
or prod
mode.
This is how i'm loading fonts directly on App.vue:
@font-face {
font-family: element-icons;
src: url('../assets/fonts/element-icons.eot?t=1472440741');
src: url('../assets/fonts/element-icons.woff?t=1472440741') format('woff'),url('../assets/fonts/element-icons.ttf?t=1472440741') format('truetype'),url('../assets/fonts/element-icons.svg?t=1472440741#el-icon') format('svg');
font-weight: 400;
font-style: normal
}
@font-face {
font-family: 'icomoon';
src: url('../assets/fonts/icomoon.ttf?y3vv4p') format('truetype'),
url('../assets/fonts/icomoon.woff?y3vv4p') format('woff'),
url('../assets/fonts/icomoon.svg?y3vv4p#icomoon') format('svg');
font-weight: normal;
font-style: normal;
}
When i save this compiles ok, but when it reloads on page:
If i try change fonts path to another a not found path error raise.
I supose then the path is right.
Is there just some thing i doing wrong?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too