flftfqwxf / gulp-iconfont-css-and-template Goto Github PK
View Code? Open in Web Editor NEWiconfont组件
iconfont组件
生成的css里class有个uEA01, 怎么把它去掉啊??
这是我的配置文件
var fontName = 'ico';
gulp.task('iconfont', function(){
gulp.src(['oursPlatform/stc/icon/*.svg'],{base:'oursPlatform/stc/'})
.pipe(iconfontCssAndTemplate({ //replace iconfontCss
fontName: fontName,
cssClass: 'iw',
cssTemplatePath: 'oursPlatform/stc/scssTpl/_icons.scss',
cssTargetPath: '../../stc/base/_webico.scss',
//templatePath: 'oursPlatform/stc/scssTpl/',
//templateTargetPath: '../../stc/tpl/',
htmlTemplate:{
templatePath: './oursPlatform/stc/scssTpl/preview.html',
//templateTargetPath: '../../stc/tpl/preview.html'
},
fontPath: '../fonts/'//webfont字体请求url
}))
.pipe(iconfont({
fontName: fontName,
formats: ['svg','ttf', 'eot', 'woff']
}))
.pipe(gulp.dest('oursPlatform/stc/fonts/'));
});
注释的这4行,我都试过了我尝试了直接写对象里的键值对,也试过直接写整个对象,虽然gulp iconfont方法启动能正常执行,但是htmlTemplate没有输出到指定路径下,请问该怎么做,需要修改index.js吗?还是我配置项的写法不对?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.