1
Fork 0
mirror of https://github.com/RGBCube/Site synced 2025-07-31 13:07:46 +00:00

Don't load eveything, only src

This commit is contained in:
RGBCube 2024-01-05 16:02:26 +03:00
parent a04baa3935
commit 0fc2afb396
No known key found for this signature in database

View file

@ -18,7 +18,7 @@ const ASSET_EXTENSIONS: &[&str] = &[".js", ".css", ".woff2", ".gif"];
static ASSETS: LazyLock<HashMap<String, Bytes>> = LazyLock::new(|| {
let mut assets = HashMap::new();
for file in embed::dir!("../..").flatten() {
for file in embed::dir!("..").flatten() {
let path = Path::new(file.path().as_ref())
.file_name()
.unwrap()