fix: remove useless print

This commit is contained in:
theo 2024-04-27 20:11:28 +02:00
parent 95fb2e093e
commit 3fe5c4477b

View File

@ -6,6 +6,7 @@ use std::path::Path;
use lightningcss::printer::PrinterOptions; use lightningcss::printer::PrinterOptions;
use lightningcss::stylesheet::{self, ParserOptions, StyleSheet}; use lightningcss::stylesheet::{self, ParserOptions, StyleSheet};
fn main() -> Result<(), Box<dyn Error>> { fn main() -> Result<(), Box<dyn Error>> {
let scss_path = Path::new("styles/global.scss"); let scss_path = Path::new("styles/global.scss");
let css_output_path = Path::new("public/styles/global.css"); let css_output_path = Path::new("public/styles/global.css");
@ -23,8 +24,6 @@ fn main() -> Result<(), Box<dyn Error>> {
..PrinterOptions::default() ..PrinterOptions::default()
}).unwrap(); }).unwrap();
println!("{}",minified_css.code);
let mut output_file = File::create(css_output_path)?; let mut output_file = File::create(css_output_path)?;
output_file.write_all(minified_css.code.as_bytes())?; output_file.write_all(minified_css.code.as_bytes())?;