Follow rsass API change

This commit is contained in:
Kitaiti Makoto 2022-01-07 04:41:20 +09:00
parent a537db559b
commit ec12539fd0

View File

@ -120,7 +120,13 @@ fn compile_theme(path: &Path, out_dir: &Path) -> std::io::Result<()> {
// compile the .scss/.sass file // compile the .scss/.sass file
let mut out = File::create(out.join("theme.css"))?; let mut out = File::create(out.join("theme.css"))?;
out.write_all( out.write_all(
&rsass::compile_scss_file(path, rsass::OutputStyle::Compressed) &rsass::compile_scss_path(
path,
rsass::output::Format {
style: rsass::output::Style::Compressed,
..rsass::output::Format::default()
},
)
.expect("SCSS compilation error"), .expect("SCSS compilation error"),
)?; )?;