minify css and js inside html + pass w3 validator
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
This commit is contained in:
parent
fdd683c2c7
commit
568a864dc9
1 changed files with 6 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue