fontmin-wawoff2

woff2 fontmin plugin

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
fontmin-wawoff2
000.0.26 years ago6 years agoMinified + gzip package size for fontmin-wawoff2 in KB

Readme

fontmin-wawoff2
!Build Statustravis-imagetravis-url !NPM versionnpm-imagenpm-url !Downloadsdownloads-imagenpm-url !Dependenciesdep-imagedep-url
wawoff2 fontmin plugin

Install

$ npm install --save fontmin-wawoff2

Usage

Fontmin convert font.ttf to font.woff2 as
var Fontmin = require('fontmin');
var wawoff2 = require('fontmin-wawoff2');

var fontmin = new Fontmin()
    .src('fonts/*.ttf')
    .use(Fontmin.glyph({text: 'hello world'}))
    .use(wawoff2())
    .dest('build/fonts');

fontmin.run(function (err, files) {
    if (err) {
        throw err;
    }

    console.log('Files woff2 successfully!');
});

Related