Skip to content

Automagically rehost google fonts by bundeling them into your application

Notifications You must be signed in to change notification settings

mkg20001/parcel-plugin-google-fonts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

parcel-plugin-google-fonts

Automagically rehost google fonts by bundeling them into your application

What it does

Basically it takes google fonts urls like these

<link href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&amp;lang=en" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

And downloads them into a local cache while replacing them during the build process

"This doesn't work. .addAssetMiddleware is not a function!"

This is part of an endeavour to bring middlewares to parcel: parcel-bundler/parcel#3428

Comment at the PR to get it implemented quicker! 😄

About

Automagically rehost google fonts by bundeling them into your application

Resources

Stars

Watchers

Forks

Packages

No packages published