Move JS into a standalone file
This commit is contained in:
parent
df5e3a6e40
commit
25323ec306
7 changed files with 124 additions and 115 deletions
|
@ -303,6 +303,10 @@ pub(super) fn write_shared(
|
|||
)?;
|
||||
}
|
||||
|
||||
if cx.shared.layout.scrape_examples_extension {
|
||||
write_minify("scrape-examples.js", static_files::SCRAPE_EXAMPLES_JS, cx, options)?;
|
||||
}
|
||||
|
||||
if let Some(ref css) = cx.shared.layout.css_file_extension {
|
||||
let buffer = try_err!(fs::read_to_string(css), css);
|
||||
// This varies based on the invocation, so it can't go through the write_minify wrapper.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue