fix: apply lightningcss to bundle once again. Seems the right thing to do
This commit is contained in:
parent
26d32be1be
commit
fca2410f09
1 changed files with 57 additions and 41 deletions
|
|
@ -145,10 +145,14 @@ impl SabryBuilder {
|
|||
.append(true)
|
||||
.open(path)?;
|
||||
|
||||
// merged bundle CSS does require another lightningcss pass
|
||||
let mut buffer = String::new();
|
||||
for (_, code) in &self.state.loaded_css_modules {
|
||||
write!(file, " {}", self.state.css_prelude)?;
|
||||
write!(file, " {code}")?;
|
||||
buffer.push_str(code);
|
||||
}
|
||||
buffer = self.css_compiler.lightningcss(&buffer)?;
|
||||
|
||||
write!(file, "{buffer}")?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Reference in a new issue