Skip to content

Commit

Permalink
minify theme.js as well
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Dec 2, 2019
1 parent 35ba58f commit 852079f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/librustdoc/html/render.rs
Expand Up @@ -644,10 +644,9 @@ themePicker.onblur = handleThemeButtonsBlur;
themes.appendChild(but);
}});"#,
as_json(&themes));
write(cx.dst.join(&format!("theme{}.js", cx.shared.resource_suffix)),
theme_js.as_bytes()
)?;

write_minify(&cx.shared.fs, cx.path("theme.js"),
&theme_js,
options.enable_minification)?;
write_minify(&cx.shared.fs, cx.path("main.js"),
static_files::MAIN_JS,
options.enable_minification)?;
Expand Down

0 comments on commit 852079f

Please sign in to comment.