From 44e79f3b5547fbc0de0574bfb6672bce4f2de400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=93=E5=8F=91=E5=8F=97=E9=95=BF=E7=94=9F?= Date: Fri, 14 Jun 2019 09:56:59 +0800 Subject: [PATCH] =?UTF-8?q?gulp-htmlmin=E5=A4=84=E7=90=86=E7=A9=BA?= =?UTF-8?q?=E6=A0=BC=E7=AE=80=E7=9B=B4=E5=A5=87=E8=91=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gulpfile.js | 2 +- themes/yilia/layout/_partial/post/nav.ejs | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index fbe25e2..808dd1d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -34,7 +34,7 @@ gulp.task('compressHtml', () => { } const minOption = { collapseWhitespace: true, //删除html中的空白 - conservativeCollapse: true, //将多个空白折叠为1空白(永远不要完全移除), 必须与 collapseWhitespace=true 一起使用 + conservativeCollapse: false, //将多个空白折叠为1空白(永远不要完全移除), 必须与 collapseWhitespace=true 一起使用 collapseBooleanAttributes: true, //省略布尔属性的值 ==> removeEmptyAttributes: true, //删除所有空属性值 ==> removeScriptTypeAttributes: true, //删除