parcel-plugin-google-fonts

0.1.4 • Public • Published

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: https://github.com/parcel-bundler/parcel/pull/3428

Comment at the PR to get it implemented quicker! 😄

Package Sidebar

Install

npm i parcel-plugin-google-fonts

Weekly Downloads

0

Version

0.1.4

License

MPL-2.0

Unpacked Size

8.62 kB

Total Files

8

Last publish

Collaborators

  • mkg20001