mirror of
https://github.com/zyllian/zyllian.github.io.git
synced 2025-05-09 18:16:43 -07:00
Fix building from scratch
This commit is contained in:
parent
e91bbc38c5
commit
311a6b40d5
2 changed files with 3 additions and 4 deletions
|
@ -184,6 +184,9 @@ impl<'a> SiteBuilder<'a> {
|
|||
/// Builds the Sass styles in the site.
|
||||
pub fn build_sass(&self) -> anyhow::Result<()> {
|
||||
let styles_path = self.build_path.join("styles");
|
||||
if !styles_path.exists() {
|
||||
std::fs::create_dir(&styles_path)?;
|
||||
}
|
||||
if self.serving {
|
||||
util::remove_dir_contents(&styles_path)
|
||||
.context("Failed to remove old contents of styles directory")?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue