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
{{ message }}
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.
Sorry but I'm new to the webpack workflow, and was not able to find a solution by myself.
In my project I've downloaded the Open Sans font from google, and put the css file and all font files in src/fonts/OpenSans (also tried dist/fonts/OpenSans) but when importing this file via require('src/fonts/OpenSans/fonts.css) in my main.js it always generete inumerous errors like:
ERROR in ./~/css-loader!./app/src/fonts/OpenSans/fonts.css
Module not found: Error: Cannot resolve 'file' or 'directory' ./Open+Sans_800_italic.svg in C:\project\app\src\fonts\OpenSans
In my css file I have all @font-face definitions like this:
vue-loader treats url() like an actual require statement so the path to the font file may have to be adjusted. You stated that both font.css and all font files are within the same directory, so theory they shouldn't need to be adjusted. Do you have a repo I could look into?
First of all, thank you for this amazing project.
Sorry but I'm new to the webpack workflow, and was not able to find a solution by myself.
In my project I've downloaded the Open Sans font from google, and put the css file and all font files in
src/fonts/OpenSans
(also trieddist/fonts/OpenSans
) but when importing this file viarequire('src/fonts/OpenSans/fonts.css)
in mymain.js
it always generete inumerous errors like:In my css file I have all
@font-face
definitions like this:What I'm doing wrong and what is the correct way to import this fonts?
Sorry for the bad english and I really appreciate any help you can provide
The text was updated successfully, but these errors were encountered: