在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):nfroidure/gulp-ttf2woff开源软件地址(OpenSource Url):https://github.com/nfroidure/gulp-ttf2woff开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):gulp-ttf2woff
UsageFirst, install npm install --save-dev gulp-ttf2woff Then, add it to your var ttf2woff = require('gulp-ttf2woff');
gulp.task('ttf2woff', function(){
gulp.src(['fonts/*.ttf'])
.pipe(ttf2woff())
.pipe(gulp.dest('fonts/'));
}); APIttf2woff(options)options.ignoreExtType: Set to true to also convert files that doesn't have the .ttf extension. options.cloneType: Set to true to clone the file before converting him so that it will output the original file too. NoteYou may look after a full Gulp web font workflow, see gulp-iconfont fot that matter. StatsContributing / IssuesPlease submit TTF to WOFF related issues to the ttf2woff project on wich gulp-ttf2woff is built. This repository issues is only for gulp and gulp tasks related issues. You may want to contribute to this project, pull requests are welcome if you accept to publish under the MIT licence. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论