From 48afcd0d86b3b20da0fc8e289fecdda59eb290fe Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 1 Oct 2023 10:22:44 +0200 Subject: fix new bundler --- server/src/routes/ui/style.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'server/src') diff --git a/server/src/routes/ui/style.rs b/server/src/routes/ui/style.rs index 9a7fc48..171c3ce 100644 --- a/server/src/routes/ui/style.rs +++ b/server/src/routes/ui/style.rs @@ -14,13 +14,11 @@ macro_rules! concat_files { [ $($files),* ] .into_iter() .map(|n| { - read_to_string( - PathBuf::from_str(file!()).unwrap() - .parent().unwrap() - .parent().unwrap() - .parent().unwrap() - .join(n), - ) + read_to_string({ + let p = PathBuf::from_str(file!()).unwrap().parent().unwrap().join($base).join(n); + log::debug!("load {p:?}"); + p + }) .unwrap() }) .collect::>() -- cgit v1.2.3-70-g09d2