middleman-minify-html
middleman-minify-html copied to clipboard
Added compress_css and compress_javascript options
A different approach that would 'always' be compatible would me moving to a option :config
that specifies the whole Htmlcompressor config.
Any reason you wouldnt just the normal minify_css
and minify_js
features?
Hmm it looks like this commit was overwritten at some point, the current docs are out of date.
@Arcovion Whoops, probably my fault when merging the new design.
@tdreyno this is about inline CSS/JS or am I missing something?
@joost Our core minifiers work inline. See the commit @Arcovion referenced above. I think this is just a documentation issue.
I see. Don't get why though:
- it requires an extra pass over all .html files
- it requires extra custom code (eg. Middleman::Extensions::MinifyJavascript#minify_inline_content)
Why not just leverage on Htmlcompressor?