是否有任何插件可以在Gulp.js中添加类似模板的功能?
即。如何获取以下任务的输出文件名,而不定义gulp.task('styles', function() {
return merge(
// stream 1
gulp.src([
paths.vendor + '/bootstrap/less/bootstrap.less',
paths.vendor + '/font-awesome/less/font-awesome.less'
])
.pipe(less({
modifyVars: {
'@icon-font-path': '"'+paths.web+'/"',
'@fa-font-path': '"'+paths.web+'"',
}
}))
,
// stream 2
gulp.src([
paths.vendor + '/OwlCarousel/owl-carousel/owl.carousel.css',
paths.vendor + '/OwlCarousel/owl-carousel/owl.theme.css',
])
)
.pipe(concat(pkg.name))
.pipe(minifyCss({}))
.pipe(rename({extname: '.css', suffix: '.min'}))
.pipe(gulp.dest(paths.css.dest));
});
变量?
<Column name="ScriptID" value="52"/>
<Column name="ScriptCategory" value="605A62F7-BCD0-4845-A8D0-7DC45B4D2E3F"/>
<Column name="ScriptName" value="{819A60C0-9188-4d44-8CDD-999A9B47C9FD}"/>