diff --git a/src/config.rs b/src/config.rs index 429efef..522b4bb 100644 --- a/src/config.rs +++ b/src/config.rs @@ -100,7 +100,12 @@ fn init(dist_dir: String, static_dir: String, templates_dir: String) -> String { if cfg!(debug_assertions) { ".".to_string() } else { - let cfg = Cfg::spec_compliant(); + let cfg = Cfg { + keep_closing_tags: true, + minify_css: true, + minify_js: true, + ..Cfg::spec_compliant() + }; // Static files for entry in glob(&format!("{static_dir}/**/*.*")).unwrap() {