From 3ed509e28c8d4c801fa383e57a86b7109b0484ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=93=E5=BA=B7?= Date: Wed, 22 Nov 2023 17:17:05 +0800 Subject: [PATCH] remove umi3 document template --- plugin.ts | 239 ++++++++++++++++++++++++++++++++++++++++ src/page/document.ejs | 246 ------------------------------------------ 2 files changed, 239 insertions(+), 246 deletions(-) create mode 100644 plugin.ts delete mode 100644 src/page/document.ejs diff --git a/plugin.ts b/plugin.ts new file mode 100644 index 000000000..f8c0a63d6 --- /dev/null +++ b/plugin.ts @@ -0,0 +1,239 @@ +import { IApi } from 'umi'; + +export default (api: IApi) => { + api.modifyHTML(($) => { + $('head').append([ + ``, + ]); + $('#' + api.config.mountElementId).append([ + `
+ +
+
+
+
+
+
+
+
+
+
+
+ +
`, + ``, + ]); + return $; + }); +}; diff --git a/src/page/document.ejs b/src/page/document.ejs deleted file mode 100644 index 16ee590fa..000000000 --- a/src/page/document.ejs +++ /dev/null @@ -1,246 +0,0 @@ - - - - - - - - - - -
-
- -
-
-
-
-
-
-
-
-
-
-
- -
- -
- - - - \ No newline at end of file