-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Scripts: regression - fails to import fonts refered in imported css file from an external npm's dependency #66503
Comments
I can confirm that, using @wordpress/scripts version 29.0.0 and later, if I revert 34c075b by removing the line Should I submit a pull request to revert it ? |
It look like https://www.npmjs.com/package/postcss-import needs some additional configuration to keep working with fonts and svgs. |
This was very helpful. I was able to play with it locally, and I fully understand the problem. The styles that get imported live inside |
Does it help to replace
|
No |
I opened #66975 that reverts changes that introduced the issue. |
npm publishing with the new |
Thanks |
Description
I have a block that uses flexslider. It fails to build since @wordpress/scripts version 29.0.0
Could it be related to that commit #61121 ?
Step-by-step reproduction instructions
npm
dependenciesbuild :
npm run build
notice the errors importing the font referenced in the felxslider module :
# ls assets/blocks/fonts flexslider-icon.0c4bb125.eot flexslider-icon.b5aefbb7.woff flexslider-icon.c6c9e9e5.ttf
Screenshots, screen recording, code snippet
A test repository to reproduce is available here : https://github.com/loxK/wordpress-scripts-test/tree/font-dependency
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: