From 7def60a590069a41a8be35e6fd89b5211ef1806e Mon Sep 17 00:00:00 2001 From: SukkaW Date: Sat, 9 Nov 2024 03:34:58 +0800 Subject: [PATCH] Add 404.html --- Build/build-public.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Build/build-public.ts b/Build/build-public.ts index defdbfae..7bf6a06d 100644 --- a/Build/build-public.ts +++ b/Build/build-public.ts @@ -60,6 +60,16 @@ export const buildPublic = task(require.main === module, __filename)(async (span path.join(PUBLIC_DIR, '_headers') ); + await compareAndWriteFile( + span, + [ + '#########################################', + '# Sukka\'s Ruleset - 404 Not Found', + '################## EOF ##################' + ], + path.join(PUBLIC_DIR, '404.html') + ); + return writeFile(path.join(PUBLIC_DIR, 'index.html'), html); });