【发布时间】:2021-06-14 15:45:11
【问题描述】:
问题出在哪里? https://i.ibb.co/L0PsxWV/Screenshot-5.png
我已经安装了 gulp 3.9.1 和 NODE.js 10.13.3...
"use strict";
var iconfont = require('gulp-iconfont');
var runTimestamp = Math.round(Date.now()/1000);
gulp.task('Iconfont', function(){
return gulp.src(['src/icons/*.svg'])
.pipe(iconfont({
fontName: 'myfont', // required
prependUnicode: true, // recommended option
formats: ['ttf', 'eot', 'woff'], // default, 'woff2' and 'svg' are available
timestamp: runTimestamp, // recommended to get consistent builds when watching files
}))
.on('glyphs', function(glyphs, options) {
// CSS templating, e.g.
console.log(glyphs, options);
})
.pipe(gulp.dest('src/fonts/'));
});
【问题讨论】:
标签: javascript node.js gulp