aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/build.mjs
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2023-04-29 13:26:09 -0400
committerXe Iaso <me@xeiaso.net>2023-04-29 13:26:09 -0400
commit042d4fa9523edb9b0613902d67452df10078c836 (patch)
tree377a856295cdefa79ff5f807b1370c975e899e7a /src/frontend/build.mjs
parent9d9614ad8a4a1d00f7df1b0e37ec32d324151335 (diff)
downloadxesite-yarn.tar.xz
xesite-yarn.zip
fucking horrible typescript garbageyarn
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'src/frontend/build.mjs')
-rw-r--r--src/frontend/build.mjs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/frontend/build.mjs b/src/frontend/build.mjs
new file mode 100644
index 0000000..488e30f
--- /dev/null
+++ b/src/frontend/build.mjs
@@ -0,0 +1,12 @@
+import * as esbuild from "esbuild";
+
+const result = await esbuild.build({
+ entryPoints: process.argv,
+ outdir: process.env.WRITE_TO
+ ? process.env.WRITE_TO
+ : "../../static/xeact",
+ bundle: true,
+ splitting: true,
+ format: "esm",
+ minifyWhitespace: !!process.env.MINIFY,
+});