Skip to content

Commit dbeafef

Browse files
committed
fix(build): fixed HTML minification
1 parent 9f9dc49 commit dbeafef

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

gulpfile.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,11 @@ gulp.task('html:replace', ['html:inject'], function () {
211211
gulp.task('html', ['html:replace'], function () {
212212
return gulp.src(config.dist + '/index.html')
213213
.pipe(plugins.plumber())
214-
.pipe(plugins.minifyHtml({ quotes: true }))
214+
.pipe(plugins.minifyHtml({
215+
empty: true,
216+
spare: true,
217+
quotes: true
218+
}))
215219
.pipe(gulp.dest(config.dist));
216220
});
217221

0 commit comments

Comments
 (0)