Warum exportiere ich immer noch solche .ejs
gulp.task('ejs', function() {
gulp.src('html/index.ejs') .pipe(ejs({},{ext: '.html'})) .pipe(gulp.dest('./dist'));
});
认证高级PHP讲师
gulp.task('ejs', function() { gulp.src('html/index.ejs') .pipe(ejs({},{},{ext: '.html'})) .pipe(gulp.dest('./dist')); });
ejs(data, options, settings)
看官网,第二个参数是options,第三个参数才是settings,你上面那么写是把{ext: '.html'}赋值给options了。官网地址
{ext: '.html'}
看官网,第二个参数是options,第三个参数才是settings,你上面那么写是把
{ext: '.html'}
赋值给options了。官网地址