Open marco-land opened 6 years ago
Could you provide me more informations please ?
Are you trying to include a css file using @import
, or a font via @font-face
and src
?
If possible, can you please attach to this issue a .zip of a project reproducing your issue - without including panel
/ kirby
kirby folders, nor the node_modules
folder
Hi pqml,
thanks for checking up on this.
Attached you can find the .zip of an example. It's not only fonts but all links would not work. I've switched to an older version of the kirby-webpack repo and the setup works there.
The css line is inside ./src/styles/_typography.scss
and actual font file is in ./www/assets/fonts
Thanks! kirby-webpack-example.zip
Whats the status here? Getting the same issues (no relative links work). @img2001jpg On what version did you fall back?
I have the same Problem. Would be great to get an answer ...
If you have a relative path inside your scss, you can get it work by having the font files twice. One folder relative to your compiled css and one folder relative to your uncompiled scss.
Hi, my assets folder setup is like this:
in my css I am linking to
url('../fonts/fontfiles')
after running
npm run start
i get the errorModule not found: Error: Can't resolve ...
but if i runnpm run build
the font is loaded correctly. but on the dev server it won't work.it is exactly setup like a previous project and it works fine there