Skip to content

Commit

Permalink
feat: assign more default options for html-minifier
Browse files Browse the repository at this point in the history
  * to minify more stuff.
  * remove deprecated removeCommentsFromCDATA
  * add removeScriptTypeAttributes and removeStyleLinkTypeAttributes
    * noticed from curbengh/hexo-nofollow#4 (comment)
  * ref https://github.com/kangax/html-minifier
  • Loading branch information
weyusi committed May 18, 2019
1 parent c9b7323 commit f05c379
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f05c379

Please sign in to comment.