我收到TypeError: dest.on is not a function
错误。运行此任务时,我找不到可能的错误。
var fileinclude = require('gulp-file-include');
var rename = require('gulp-rename');
var paths = {
templates : './templates/'
}
//file include: grab partials from templates and render out html files
gulp.task('fileinclude', function() {
return gulp.src(paths.templates + '*.tpl.html')
.pipe(fileinclude)
.pipe(rename({
extname: ""
}))
.pipe(rename({
extname: ".html"
}))
.pipe(gulp.dest('./'));
});
1条答案
按热度按时间htrmnn0y1#
这一行:
应该是这样的: