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

It just downloads woff/woff2 css, how to integrate it with html-webpack-plugin and webpack4? #20

Open
AuthorProxy opened this issue Jan 21, 2020 · 2 comments

Comments

@AuthorProxy
Copy link

No description provided.

@Darth-Alex
Copy link

Darth-Alex commented Feb 5, 2020

having the same Problem. Font is downloaded and saved in .woff file in my dist folder. But how to integrate it in the Application? Font is not loaded.

as a workaround just add this to your head of the index.html file:
<link rel="stylesheet" type="text/css" href="woff.css" />

The Problem is maybe the HtmlWebpackPlugin. The Junk is not injected into the index.html

@nerrons
Copy link

nerrons commented May 15, 2020

Seconding this. Not having to insert a <link> is much more cleaner.

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

3 participants