Generated output is not minified
DrummerHead opened this issue · comments
DrummerHead commented
This is the process I went through:
- I install the package with
npm install hexo-html-minifier --save
- I add _config.yml details noted in readme
- I execute
hexo clean && hexo generate
- I check the
public
folder and edit any.html
file, it is not minified
Am I missing a step? I was expecting for the generated html files to be minified.
I'm using
- hexo v3.2.0
- node v5.5.0
- npm v3.3.12
Thanks
Darek Kay commented
You need to adjust the plugin settings in your _config.yml
. Try this:
html_minifier:
exclude:
removeComments: true
collapseWhitespace: true
removeScriptTypeAttributes: true
removeStyleLinkTypeAttributes: true
netop://ウエハ commented
This information should be in the README.
Thomas commented
Done