From 76dc62ac49326edce02d94b07a1ba0d71053b4d3 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Mon, 3 Jun 2019 11:29:44 +0200 Subject: [PATCH] Copy static folders after processing images when building --- components/site/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/site/src/lib.rs b/components/site/src/lib.rs index 5cb1f65..b8b1ea0 100644 --- a/components/site/src/lib.rs +++ b/components/site/src/lib.rs @@ -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(()) }