google-fonts-plugin icon indicating copy to clipboard operation
google-fonts-plugin copied to clipboard

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

Open AuthorProxy opened this issue 5 years ago • 2 comments

AuthorProxy avatar Jan 21 '20 07:01 AuthorProxy

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

Darth-Alex avatar Feb 05 '20 10:02 Darth-Alex

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

nerrons avatar May 15 '20 09:05 nerrons