Skip to content

Gulp plugin to convert TTF (TrueType font) files to WOFF2 using ttf2woff2.

License

Notifications You must be signed in to change notification settings

kasperhesthaven/gulp-ttf-to-woff2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Dependencies NPM Version

gulp-ttf-to-woff2

Gulp plugin to convert TTF(TrueType font) files to WOFF2 using ttf2woff2.

Install

npm i gulp-ttftowoff2

Usage

const gulp = require("gulp");
const ttfToWoff2 = require("gulp-ttftowoff2");

export function convertTffToWoff() {
  return gulp.src("./src/*.ttf").pipe(ttfToWoff2()).pipe(gulp.dest("./dist/"));
}

About

Gulp plugin to convert TTF (TrueType font) files to WOFF2 using ttf2woff2.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published