diff options
Diffstat (limited to 'server/src/routes/ui/style.rs')
-rw-r--r-- | server/src/routes/ui/style.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/routes/ui/style.rs b/server/src/routes/ui/style.rs index a719b67..c935c8a 100644 --- a/server/src/routes/ui/style.rs +++ b/server/src/routes/ui/style.rs @@ -12,7 +12,7 @@ use rocket::{ macro_rules! concat_files { ([$base: expr], $($files:literal),*) => {{ - #[cfg(debug_assertions)] + #[cfg(any(debug_assertions, feature = "hot-css"))] { use std::{fs::read_to_string, path::PathBuf, str::FromStr}; [ $($files),* ] @@ -28,7 +28,7 @@ macro_rules! concat_files { .collect::<Vec<_>>() .join("\n") } - #[cfg(not(debug_assertions))] + #[cfg(not(any(debug_assertions, feature = "hot-css")))] concat!($(include_str!(concat!($base, "/", $files))),*).to_string() }}; } |