chenzhutian / hexo-all-minifier

A plugin for Hexo that optimizes HTML, CSS, JS and imagages, and it can optionally deploys your blog.
MIT License
279 stars 30 forks source link

only the html generated from markdown is minimized #5

Closed andre-pt closed 8 years ago

andre-pt commented 8 years ago

Hi,

I have already asked for help in https://github.com/hexojs/hexo/issues/1841 with no success, maybe you can help me here.

The "after_render:html" filter where the html minifier is registered, is only called after the html generation from the "hexo-renderer-marked". However I use the "hexo-renderer-ejs" for templating and the html generated by it is not minimized.

Do you know how can I minimize both outputs?

Thanks

andre-pt commented 8 years ago

It was already fixed in hexo: https://github.com/hexojs/hexo/issues/1791