fix formatting

This commit is contained in:
Evan Almloff committed 2023-08-21 16:07:49 -05:00
1 parent 99268acc05
commit e162e3e4cf
4 files changed
+24 -10

No files matched your search

+8 -4
View File
@@ -241,7 +241,7 @@ pub fn build(config: &CrateConfig, quiet: bool, skip_assets: bool) -> Result<Bui
}
}
if !skip_assets{
if !skip_assets {
process_assets(config)?;
}
@@ -251,7 +251,11 @@ pub fn build(config: &CrateConfig, quiet: bool, skip_assets: bool) -> Result<Bui
})
}
pub fn build_desktop(config: &CrateConfig, _is_serve: bool, skip_assets: bool) -> Result<BuildResult> {
pub fn build_desktop(
config: &CrateConfig,
_is_serve: bool,
skip_assets: bool,
) -> Result<BuildResult> {
log::info!("🚅 Running build [Desktop] command...");
let t_start = std::time::Instant::now();
@@ -353,7 +357,7 @@ pub fn build_desktop(config: &CrateConfig, _is_serve: bool, skip_assets: bool) -
}
}
if !skip_assets{
if !skip_assets {
// Collect assets
process_assets(config)?;
// Create the __assets_head.html file for bundling
@@ -494,7 +498,7 @@ pub fn gen_page(config: &CrateConfig, serve: bool, skip_assets: bool) -> String
{
style_str.push_str("<link rel=\"stylesheet\" href=\"tailwind.css\">\n");
}
if !skip_assets{
if !skip_assets {
let manifest = config.asset_manifest();
style_str.push_str(&manifest.head());
}