parcel-transformer-google-fonts-local

1.0.2 • Public • Published

parcel-transformer-google-fonts

Automagically rehost google fonts by bundeling them into your application

Usage

Add parcel-transformer-google-fonts as a transformer for parcel by adding this to your package.json

{
  "parcel": {
    "transforms": {
      "*.html": [
        "parcel-transformer-google-fonts"
      ]
    }
  }
}

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

/parcel-transformer-google-fonts-local/

    Package Sidebar

    Install

    npm i parcel-transformer-google-fonts-local

    Weekly Downloads

    80

    Version

    1.0.2

    License

    MPL-2.0

    Unpacked Size

    9.29 kB

    Total Files

    8

    Last publish

    Collaborators

    • highercomve