Skip to content

Commit 873c7ae

Browse files
committed
fix: fix aggressive htmlmin
1 parent 3cd731b commit 873c7ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gulpfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ gulp.task('htmlminify-inc',function () {
5656
.pipe(htmlmin({
5757
collapseWhitespace: true,
5858
removeComments: true,
59+
ignoreCustomFragments: [/<main>/, /<\/main>/, /<\?[\s\S]*?(?:\?>|$)/]
5960
}))
6061
.pipe(gulp.dest('./inc'));
6162
})

0 commit comments

Comments
 (0)