gulp-ttf-to-woff

1.0.3 • Public • Published

NPM CD Dependencies NPM Version

gulp-ttf-to-woff

Gulp plugin to convert TTF(TrueType font) files to WOFF using ttf2woff.

Install

npm i gulp-ttf-to-woff

Usage

const gulp = require("gulp");
const ttfToWoff = require("gulp-ttf-to-woff");
 
export function convertTffToWoff() {
  return gulp.src("./src/*.ttf").pipe(ttfToWoff()).pipe(gulp.dest("./dist/"));
}

Package Sidebar

Install

npm i gulp-ttf-to-woff

Weekly Downloads

22

Version

1.0.3

License

MIT

Unpacked Size

3.66 kB

Total Files

4

Last publish

Collaborators

  • kasper.hesthaven