0.1.4 • Published 9 years ago
grunt-font-base64 v0.1.4
Grunt FontBase64
- 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