在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):gillbeits/gulp-fontello开源软件地址(OpenSource Url):https://github.com/gillbeits/gulp-fontello开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):gulp-fontelloImport svg files to Fontello icon font project, use svg filename as glyph name. Also provide task for auto download exported css and font files into destinated folder. Installnpm install --save-dev gulp-fontello Default Zip Archive Structure├── LICENSE.txt ├── README.txt ├── config.json ├── css │ ├── animation.css │ ├── fontello-codes.css │ ├── fontello-embedded.css │ ├── fontello-ie7-codes.css │ ├── fontello-ie7.css │ └── fontello.css ├── demo.html └── font ├── fontello.eot ├── fontello.svg ├── fontello.ttf └── fontello.woff Usage
var
gulp = require('gulp'),
$ = require('gulp-load-plugins')()
;
gulp.task('glyph', function () {
return gulp.src('config.json')
.pipe($.fontello())
.pipe($.print())
.pipe(gulp.dest('dist'))
}); Optionsvar options = {
host : 'http://fontello.com', // Host for response
font : 'font', // Destination dir for Fonts and Glyphs
css : 'css', // Destination dir for CSS Styles,
assetsOnly : true // extract from ZipFile only CSS Styles and Fonts exclude config.json, LICENSE.txt, README.txt and demo.html
cache : $.fontello.simpleFsCache('cachedir') // object containing methods get(key, callback) and set(key, value)
} CLI ArgumentsScript can accept input parameters in CLI mode and extends options parameters in gulp task, for example:
gulp <fontello-task> --no-assets-only
npm run gulp <fontello-task> -- --no-assets-only Available arguments
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论