gulp-font64-json
v1.1.0
Published
Convert your fonts to base64 and saves them in a json file to use the faster-font-loading-technique described here: http://crocodillon.com/blog/non-blocking-web-fonts-using-localstorage
Downloads
4
Maintainers
Readme
gulp-font64-json
Convert your fonts to base64 and saves them in a json file to use the faster-font-loading-technique described here: http://crocodillon.com/blog/non-blocking-web-fonts-using-localstorage
Table of Contents
Installation
$ npm install --save-dev gulp-font64-json
or if you prefer yarn:
$ yarn add -D gulp-font64-json
Usage
const gulp = require('gulp');
const font64json = require('gulp-font64-json');
gulp.task('build-fonts', () => {
return gulp.src('path/to/your/fonts/*')
.pipe(font64json('fonts.json'))
.pipe(gulp.dest('dest'));
});
Development
$ npm test
Changelog
- 1.1.0
- Prettier font names in the font-face declaration
- Fix some bugs
- 1.0.1 Fix Bugs
- 1.0.0 Initial Release