grunt-font-base64

0.1.4 • Public • Published

Grunt FontBase64 Built with Grunt

MIT License NPM version NPM downloads Build

  • Generates CSS files with WOFF(2) google fonts embedded as Base64

Install

npm i grunt-font-base64 --save-dev

Usage

Read the issues before use

Config

    options: {},
    all: {
        fonts: [
            'Gruntfile.js',
            'http://fonts.googleapis.com/css?family=Droid+Sans:700',
            'http://fonts.googleapis.com/css?family=Droid+Sans',
            'http://fonts.googleapis.com/css?family=Open+Sans',
            'http://fonts.googleapis.com/css?family=Droid+Sans:400,700',
            'http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800'
        ]
    }

Droid Sans will not be duplicated
Gruntfile.js will not fail and not be encoding of course...

Command Line

grunt font_base64 --debug

Issues

  • Not tested
  • woff and woff2 format only
  • Ouput folder is not setted via Gruntfile
  • Output folder is completely deleted (./build/fonts, ./build/styles)
  • @TODO Downloaded fonts must be in a font-family sub folder

Package Sidebar

Install

npm i grunt-font-base64

Weekly Downloads

1

Version

0.1.4

License

MIT

Last publish

Collaborators

  • sixertoy