aboutsummaryrefslogtreecommitdiffhomepage
path: root/esbuild.mjs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-12-05 04:20:28 +0900
committernsfisis <nsfisis@gmail.com>2025-12-05 04:20:28 +0900
commit2d6f122b3379040587b393b264f97c703dd23595 (patch)
treed1ee04265042e5c8b3a6299eb83379abc698cb15 /esbuild.mjs
parentfbd4f2129ce8fe106391302896dd86e05b2f331b (diff)
downloadphperkaigi-2024-albatross-archive-2d6f122b3379040587b393b264f97c703dd23595.tar.gz
phperkaigi-2024-albatross-archive-2d6f122b3379040587b393b264f97c703dd23595.tar.zst
phperkaigi-2024-albatross-archive-2d6f122b3379040587b393b264f97c703dd23595.zip
fix asset building
Diffstat (limited to 'esbuild.mjs')
-rw-r--r--esbuild.mjs7
1 files changed, 1 insertions, 6 deletions
diff --git a/esbuild.mjs b/esbuild.mjs
index 0e93539..d259a46 100644
--- a/esbuild.mjs
+++ b/esbuild.mjs
@@ -4,15 +4,10 @@ let ALBATROSS_BASE_PATH = process.env.ALBATROSS_BASE_PATH;
if (ALBATROSS_BASE_PATH == null) {
throw new Error('$ALBATROSS_BASE_PATH is not set');
}
-// WORKAROUND:
-// Unquote the value as work-around for Docker and Docker Compose.
-// How Docker parses .env files is different from how Docker Compose does for some reason.
-// Docker treats the value as is, while Docker Compose strips the outermost quotes.
-ALBATROSS_BASE_PATH = ALBATROSS_BASE_PATH.replace(/^"(.*)"$/, '$1');
await build({
entryPoints: ['assets/index.js', 'assets/chart.js', 'assets/loading.js'],
- outdir: 'public/assets',
+ outdir: 'archive/assets',
bundle: true,
minify: true,
sourcemap: true,