use std::{fs::{File, read_to_string}, io::Read}; pub fn css_bundle() -> String { if cfg!(debug_assertions) { read_to_string("server/src/frontend/style/layout.css").unwrap() } else { include_str!("layout.css").to_string() } } pub fn font_bundle() -> Vec { if cfg!(debug_assertions) { let mut woff = Vec::new(); File::open("server/src/frontend/style/cantarell.woff2").unwrap().read_to_end(&mut woff).unwrap(); woff } else { include_bytes!("cantarell.woff2").to_vec() } }