【发布时间】:2017-05-29 03:59:01
【问题描述】:
gulp.task('pug-general', function(){
gulp.src('bundles/pug/*.pug')
.pipe(pug({
outputStyle: 'compact'
}))
.pipe(gulp.dest('page/'));
});
我一直在寻找一种方法来更改 pug 模板的输出样式,因为它在编译时会输出单行 html 文件。虽然我写了outputStyle: 'compact',但我只是想看看它是否有效。
【问题讨论】: