aboutsummaryrefslogtreecommitdiff
path: root/ui/client-scripts/src/lib.rs
blob: 408799ad747dfb4827e952d26aaf43c567d3a80f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 <metamuffin.org>
*/
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()
}