Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kasperhesthaven/gulp-ttf-to-woff2

Gulp plugin to convert TTF (TrueType font) files to WOFF2 using ttf2woff2.
https://github.com/kasperhesthaven/gulp-ttf-to-woff2

converter gulp gulp-plugin ttf ttf2woff2 woff2

Last synced: 7 days ago
JSON representation

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

Awesome Lists containing this project

README

        

![Build](https://github.com/kasperhesthaven/gulp-ttf-to-woff2/workflows/NPM%20CD/badge.svg) ![Dependencies](https://img.shields.io/librariesio/release/npm/gulp-ttftowoff2) ![NPM Version](https://img.shields.io/npm/v/gulp-ttftowoff2)

# gulp-ttf-to-woff2

Gulp plugin to convert TTF(TrueType font) files to WOFF2 using [ttf2woff2](https://github.com/nfroidure/ttf2woff2).

## Install

`npm i gulp-ttftowoff2`

## Usage

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

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