Skip to content
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

Integration with npm-typeface fonts #26

Open
mattandryc opened this issue Nov 12, 2021 · 0 comments
Open

Integration with npm-typeface fonts #26

mattandryc opened this issue Nov 12, 2021 · 0 comments

Comments

@mattandryc
Copy link

mattandryc commented Nov 12, 2021

My Gatsby project is using npm-typefaces to self-host fonts, so the font files live in the node_modules folder.

For self-hosted fonts, the plugin requires a statically-typed path to the css file (i.e. the "file" param) where the @font-face lives.

In this case, using npm-typefaces, the filename of the css where the @font-face lives is determined at build time (e.g. /public/styles.46589de85f365befd1a4.css) and the fonts live in the public/static/ folder.

Is there a way to use this plugin with npm-typeface?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant