浏览代码

Add 404.html

SukkaW 1 年之前
父节点
当前提交
7def60a590
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      Build/build-public.ts

+ 10 - 0
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);
 });