-
Notifications
You must be signed in to change notification settings - Fork 1
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
How to import fonts from node_modules? #152
Comments
Do you have an example dependency? I think the webpack loader e.g. |
@ThornWalli we ended up needing: importPathResolve: (file) => {
return `~${file}`
}, This allowed a src like With that |
I created a package with fonts and was able to integrate it without problems. (https://github.com/ThornWalli/test-font) In that case no prefix is used. The files are available in the node_modules? |
@ThornWalli yes, |
@rwwagner90 I have applied the change for So it should be finished? |
@ThornWalli I am not sure. If you want to release a new version, I can try it out. |
Looks like a new version was released. I will try it out soon. |
I've been trying a bunch of different
~
,@/
,node_modules
,/node_modules
etc and I cannot seem to import fonts from node_modules. How do I do this?The text was updated successfully, but these errors were encountered: