Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit baeea4e

Browse files
committedNov 27, 2019
minify theme.js as well
1 parent 27f4d6b commit baeea4e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎src/librustdoc/html/render.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -644,10 +644,9 @@ themePicker.onblur = handleThemeButtonsBlur;
644644
themes.appendChild(but);
645645
}});"#,
646646
as_json(&themes));
647-
write(cx.dst.join(&format!("theme{}.js", cx.shared.resource_suffix)),
648-
theme_js.as_bytes()
649-
)?;
650-
647+
write_minify(&cx.shared.fs, cx.path("theme.js"),
648+
&theme_js,
649+
options.enable_minification)?;
651650
write_minify(&cx.shared.fs, cx.path("main.js"),
652651
static_files::MAIN_JS,
653652
options.enable_minification)?;

0 commit comments

Comments
 (0)
Please sign in to comment.