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.