In meiner config/index.js, in dem Build-Abschnitt, ich habeVue-cli Webpack Vorlage dient nicht ordnungsgemäß statische Schriftart
assetsSubDirectory: 'static',
assetsPublicPath: '/path/to/subdirectory/',
Meine statischen Schriften, die aus einer Themenvorlage kommen innerhalb node_modules importiert sollte dann bis zu root/pfad/zu/unterverzeichnis/static/fonts/einige-fonts.woff. Ist das richtig?
jedoch in meiner Produktion zu bauen, ist die Build-Suche für diese Dateien an:
root/statisch/fonts/some-fonts.wff
Mein Weniger Datei Beispiel:
@font-face {
font-family: 'Source Sans Pro';
font-style: normal;
font-weight: 300;
src: local('Source Sans Pro'),
url(/static/fonts/source-sans-pro/source-sans-pro-v9-vietnamese_latin-ext_latin-300.eot) format('embedded-opentype'),
url(/static/fonts/source-sans-pro/source-sans-pro-v9-vietnamese_latin-ext_latin-300.ttf) format('truetype'),
url(/static/fonts/source-sans-pro/source-sans-pro-v9-vietnamese_latin-ext_latin-300.woff) format('woff'),
url(/static/fonts/source-sans-pro/source-sans-pro-v9-vietnamese_latin-ext_latin-300.woff2) format('woff2');
}
Wie behebe ich das?