mirror of https://github.com/curbengh/hexo-yam
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:
parent
c9b7323768
commit
f05c379687
7
index.js
7
index.js
|
@ -5,11 +5,12 @@ if (hexo.config.neat_enable === true) {
|
|||
enable: true,
|
||||
logger: false,
|
||||
exclude: [],
|
||||
removeComments: true,
|
||||
removeCommentsFromCDATA: true,
|
||||
collapseWhitespace: true,
|
||||
collapseBooleanAttributes: true,
|
||||
collapseWhitespace: true,
|
||||
removeComments: true,
|
||||
removeEmptyAttributes: true,
|
||||
removeScriptTypeAttributes: true,
|
||||
removeStyleLinkTypeAttributes: true,
|
||||
minifyJS: true,
|
||||
minifyCSS: true
|
||||
}, hexo.config.neat_html)
|
||||
|
|
Loading…
Reference in New Issue