gulp-font64-json

1.1.0 • Public • Published

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

Dependencies (3)

Dev Dependencies (3)

Package Sidebar

Install

npm i gulp-font64-json

Weekly Downloads

0

Version

1.1.0

License

MIT

Last publish

Collaborators

  • sydev