-
Notifications
You must be signed in to change notification settings - Fork 6
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
Local custom font not getting copied to target folder #21
Comments
Hi @cmdillon , I'll take a look on this in few hours. It shouldn't be hard to fix ;) |
Hi! Thanks for looking into this issue. Any progress? |
@cmdillon Currently investigating on this, but it's hard to found a .woff file on the web 👀 I would like to test all possible file types but only found .ttf and .otf. Can you send me a .woff file? romainb at octobercms dot fr |
@RomainMazB sure here ya go... |
Thanks :) I'll take a look immediately.
|
@cmdillon can you test this webpack.config.js file?
|
@RomainMazB hi! thx for the help, but for me it's still not working correctly. i use the font like in your image that you sent, now the file gets sent to the correct folder, but the font will not load to the browser. i guess there must be something wrong with my local dev environment. just don't know what. 😞 ...OK! so—i tried one more time to see if i can get it to work and it did.🍻. but from what i can tell it's only being served from the "blank-src" folder and not getting copied to the "blank" folder. will it get copied to the "blank" folder on build for production? btw: thx again for the help |
hi! when i try to use a local custom font in my project webpack doesn't copy the file to the theme folder.
i've added this: @import "./fonts.css" to my entry.pcss file.
the content of the "fonts.css" file is:
@font-face {
font-family: 'font;
font-style: normal;
font-weight: normal;
src: local('font'), url('/themes/blank/assets/fonts/font.woff') format('woff');
}
the folder "fonts" gets copied to the theme folder, but then it's empty.
any help with this issue would be much appreciated
The text was updated successfully, but these errors were encountered: