1
Fork 0

Fix lint error, change scrape-examples.js minify call

This commit is contained in:
Will Crichton 2021-10-01 13:57:57 -07:00
parent 25323ec306
commit 55731bbc7d
3 changed files with 9 additions and 2 deletions

View file

@ -304,7 +304,12 @@ pub(super) fn write_shared(
}
if cx.shared.layout.scrape_examples_extension {
write_minify("scrape-examples.js", static_files::SCRAPE_EXAMPLES_JS, cx, options)?;
cx.write_minify(
SharedResource::Unversioned { name: "scrape-examples.js" },
static_files::SCRAPE_EXAMPLES_JS,
options.enable_minification,
&options.emit,
)?;
}
if let Some(ref css) = cx.shared.layout.css_file_extension {