Tune HTML minification

This commit is contained in:
Seth Vargo 2014-10-22 09:17:09 -04:00
parent a471f71cbb
commit 9ad586dac4
2 changed files with 14 additions and 2 deletions

View File

@ -59,7 +59,13 @@ set :markdown, fenced_code_blocks: true
configure :build do
activate :asset_hash
activate :minify_css
activate :minify_html
activate :minify_html do |html|
html.remove_quotes = false
html.remove_script_attributes = false
html.remove_multi_spaces = false
html.remove_http_protocol = false
html.remove_https_protocol = false
end
activate :minify_javascript
# Enable cache buster

View File

@ -33,6 +33,12 @@ end
configure :build do
activate :asset_hash
activate :minify_css
activate :minify_html
activate :minify_html do |html|
html.remove_quotes = false
html.remove_script_attributes = false
html.remove_multi_spaces = false
html.remove_http_protocol = false
html.remove_https_protocol = false
end
activate :minify_javascript
end