From 6a31ccff99bd8e4bd1d3b4759b5ec796dff3d56e Mon Sep 17 00:00:00 2001 From: areille <32739983+areille@users.noreply.github.com> Date: Thu, 15 Oct 2020 18:11:55 +0000 Subject: [PATCH] Enable html minification (#1208) * Next version * Remove lines forcing minify_html to false * Update documentation about minify_html * Update changelog Co-authored-by: Vincent Prouillet --- CHANGELOG.md | 1 + components/config/src/config/mod.rs | 3 --- docs/content/documentation/getting-started/configuration.md | 3 +++ 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 45c469c4..ce5616f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## 0.13.0 (unreleased) +- Enable HTML minification - Support `output_dir in `config.toml` ## 0.12.2 (2020-09-28) diff --git a/components/config/src/config/mod.rs b/components/config/src/config/mod.rs index b33b8c79..07236282 100644 --- a/components/config/src/config/mod.rs +++ b/components/config/src/config/mod.rs @@ -155,9 +155,6 @@ impl Config { } } - // TODO: re-enable once it's a bit more tested - config.minify_html = false; - Ok(config) } diff --git a/docs/content/documentation/getting-started/configuration.md b/docs/content/documentation/getting-started/configuration.md index 588bb736..028f0a4d 100644 --- a/docs/content/documentation/getting-started/configuration.md +++ b/docs/content/documentation/getting-started/configuration.md @@ -86,6 +86,9 @@ languages = [] # Sass files in theme directories are always compiled. compile_sass = false +# When set to "true", the generated HTML files are minified. +minify_html = false + # A list of glob patterns specifying asset files to ignore when the content # directory is processed. Defaults to none, which means that all asset files are # copied over to the `public` directory.