Browse Source

Copy static folders after processing images when building

index-subcmd
Vincent Prouillet 5 years ago
parent
commit
76dc62ac49
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      components/site/src/lib.rs

+ 2
- 2
components/site/src/lib.rs View File

@@ -607,8 +607,6 @@ impl Site {
self.compile_sass(&self.base_path)?;
}

self.copy_static_directories()?;

if self.config.build_search_index {
self.build_search_index()?;
}
@@ -649,6 +647,8 @@ impl Site {
// We process images at the end as we might have picked up images to process from markdown
// or from templates
self.process_images()?;
// Processed images will be in static so the last step is to copy it
self.copy_static_directories()?;

Ok(())
}


Loading…
Cancel
Save