Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/kasperhesthaven/gulp-ttf-to-woff2
- Owner: kasperhesthaven
- License: mit
- Created: 2020-09-27T02:22:52.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T20:01:12.000Z (about 2 years ago)
- Last Synced: 2024-04-29T18:22:22.713Z (9 months ago)
- Topics: converter, gulp, gulp-plugin, ttf, ttf2woff2, woff2
- Language: JavaScript
- Homepage:
- Size: 188 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/"));
}
```