From ed19a428cb5eef84c8cf3fed5fda3afd5fc96305 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 18 Jan 2026 23:43:12 +0100 Subject: Move client scripts to build-crate --- ui/client-scripts/src/lib.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ui/client-scripts/src/lib.rs (limited to 'ui/client-scripts/src/lib.rs') diff --git a/ui/client-scripts/src/lib.rs b/ui/client-scripts/src/lib.rs new file mode 100644 index 0000000..408799a --- /dev/null +++ b/ui/client-scripts/src/lib.rs @@ -0,0 +1,13 @@ +/* + This file is part of jellything (https://codeberg.org/metamuffin/jellything) + which is licensed under the GNU Affero General Public License (version 3); see /COPYING. + Copyright (C) 2026 metamuffin +*/ +use std::borrow::Cow; + +pub fn js_bundle() -> Cow<'static, str> { + include_str!(concat!(env!("OUT_DIR"), "/bundle.js")).into() +} +pub fn js_bundle_map() -> Cow<'static, str> { + include_str!(concat!(env!("OUT_DIR"), "/bundle.js.map")).into() +} -- cgit v1.3