From ec12539fd0b0763ba691d380ae158b05687842c2 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Fri, 7 Jan 2022 04:41:20 +0900 Subject: [PATCH] Follow rsass API change --- build.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/build.rs b/build.rs index 98ca35de..0cc50b5b 100644 --- a/build.rs +++ b/build.rs @@ -120,8 +120,14 @@ fn compile_theme(path: &Path, out_dir: &Path) -> std::io::Result<()> { // compile the .scss/.sass file let mut out = File::create(out.join("theme.css"))?; out.write_all( - &rsass::compile_scss_file(path, rsass::OutputStyle::Compressed) - .expect("SCSS compilation error"), + &rsass::compile_scss_path( + path, + rsass::output::Format { + style: rsass::output::Style::Compressed, + ..rsass::output::Format::default() + }, + ) + .expect("SCSS compilation error"), )?; Ok(())