feat: assign more default options for html-minifier

* to minify more stuff.
  * remove deprecated removeCommentsFromCDATA
  * add removeScriptTypeAttributes and removeStyleLinkTypeAttributes
    * noticed from https://github.com/weyusi/hexo-nofollow/issues/4#issue-445559505
  * ref https://github.com/kangax/html-minifier
This commit is contained in:
weyusi 2019-05-18 17:01:15 +09:30
parent c9b7323768
commit f05c379687
1 changed files with 4 additions and 3 deletions

View File

@ -5,11 +5,12 @@ if (hexo.config.neat_enable === true) {
enable: true, enable: true,
logger: false, logger: false,
exclude: [], exclude: [],
removeComments: true,
removeCommentsFromCDATA: true,
collapseWhitespace: true,
collapseBooleanAttributes: true, collapseBooleanAttributes: true,
collapseWhitespace: true,
removeComments: true,
removeEmptyAttributes: true, removeEmptyAttributes: true,
removeScriptTypeAttributes: true,
removeStyleLinkTypeAttributes: true,
minifyJS: true, minifyJS: true,
minifyCSS: true minifyCSS: true
}, hexo.config.neat_html) }, hexo.config.neat_html)