From 2de4c2886a08a3ecf87c925661ae82bc5cb5c099 Mon Sep 17 00:00:00 2001 From: zumbiepig <121742281+zumbiepig@users.noreply.github.com> Date: Thu, 26 Sep 2024 19:04:21 -0700 Subject: [PATCH] fix --- build.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.ts b/build.ts index 7c996bc..040964b 100644 --- a/build.ts +++ b/build.ts @@ -43,7 +43,8 @@ srcFiles.forEach((file) => { else if (isDev) copyFiles.push(file); else if (/\.(html|css|js|json)$/.test(strippedPath)) { if ( - strippedPath.startsWith('/game/offline/') || + (strippedPath.startsWith('/game/') && + strippedPath.endsWith('/offline.html')) || basename(strippedPath) === 'classes.js' ) copyFiles.push(file);