mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-27 17:41:50 +00:00
This reverts commit 9acf5bd821.
MSO determined that because we use `file(...)` instead of a string
instead of an asset being locked to its initial state via a cache object
we are sending it as it is on disk every time. which means that when a
new server deployment updates the tgui it will send this new tgui code
even if the currently running DM code does not support it.
36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
// If you use a file(...) object, instead of caching the asset it will be loaded from disk every time it's requested.
|
|
// This is useful for development, but not recommended for production.
|
|
// And if TGS is defined, we're being run in a production environment.
|
|
|
|
#ifdef TGS
|
|
/datum/asset/simple/tgui
|
|
keep_local_name = FALSE
|
|
assets = list(
|
|
"tgui.bundle.js" = "tgui/public/tgui.bundle.js",
|
|
"tgui.bundle.css" = "tgui/public/tgui.bundle.css",
|
|
)
|
|
|
|
/datum/asset/simple/tgui_panel
|
|
keep_local_name = FALSE
|
|
assets = list(
|
|
"tgui-panel.bundle.js" = "tgui/public/tgui-panel.bundle.js",
|
|
"tgui-panel.bundle.css" = "tgui/public/tgui-panel.bundle.css",
|
|
)
|
|
|
|
#else
|
|
/datum/asset/simple/tgui
|
|
keep_local_name = TRUE
|
|
assets = list(
|
|
"tgui.bundle.js" = file("tgui/public/tgui.bundle.js"),
|
|
"tgui.bundle.css" = file("tgui/public/tgui.bundle.css"),
|
|
)
|
|
|
|
/datum/asset/simple/tgui_panel
|
|
keep_local_name = TRUE
|
|
assets = list(
|
|
"tgui-panel.bundle.js" = file("tgui/public/tgui-panel.bundle.js"),
|
|
"tgui-panel.bundle.css" = file("tgui/public/tgui-panel.bundle.css"),
|
|
)
|
|
|
|
#endif
|