如何将部分 HTML 排除在 cache 之外
返回导航
- Blacklist the .seo.html files during partials task
- Copy the seo files afterwards into dist
gulp.task('partials', function () {
return gulp.src([
'src/**/*.html',
'!src/**/*.seo.html'
])
.pipe(gulp.dest('.tmp/src'))
.pipe($.size());
});
gulp.task('copy', function () {
return gulp.src([
'src/**/*.seo.html'
])
.pipe(gulp.dest('dist/'));
});
gulp.task('build', [
'partials',
'copy'
], function() {
gulp.start('deploy');
});
返回导航
本文标题:如何将部分 HTML 排除在 cache 之外
本文链接:https://www.haomeiwen.com/subject/jvphzttx.html
网友评论