-
-
Notifications
You must be signed in to change notification settings - Fork 57
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 @font-face files not loading when using npm run start #691
Comments
I've found that publicPath is undefined in my webpack config rules generated by wpackio. |
|
If I manually navigate to the file, it exists, but it doesn't load at all in the browser from the browserSync blob. I don't see the file in Network. Sorry, for all those comments, I'm commenting as I debug and find new stuff. |
Hi, I have the same issue. Any ETA on this ? |
Hi, I will take a look. |
Hi, Could you please give me a repo for reproduction? I have checked some asset files and they do seem to work. |
I have checked with specific Also make sure you are on version 3.5.0 or greater. |
Hi, I don't have time to make a repo for this but it's actually pretty simple to reproduce. You have to make a fresh WordPress install and apply the example theme of this repo (this one), then install npm and composer dependencies. After add some fonts in the assets directory and declare them in |
Maybe it had something to do with |
Thanks, I tested the v4.1.0 and it works now. Like you said it might be because of |
Great... |
When loading font files directly from SCSS files, they do not load properly with
npm run start
, but work correctly when doingnpm run build
.The text was updated successfully, but these errors were encountered: