From 08bbb8be55887c4cec6aabb0a23010766034a95e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=B2=E5=A4=95?= <1075746765@qq.com> Date: Tue, 23 Apr 2024 19:33:33 +0800 Subject: [PATCH] chore: update --- .dumi/theme/plugin.ts | 62 +++++++++++++++---------------------------- 1 file changed, 21 insertions(+), 41 deletions(-) diff --git a/.dumi/theme/plugin.ts b/.dumi/theme/plugin.ts index fb86cb0941ec..9c839ecad96f 100644 --- a/.dumi/theme/plugin.ts +++ b/.dumi/theme/plugin.ts @@ -182,26 +182,6 @@ const RoutesPlugin = (api: IApi) => { // exclude dynamic route path, to avoid deploy failed by `:id` directory .filter((f) => !f.path.includes(':')) .map((file) => { - let globalStyles = ''; - - // Debug for file content: uncomment this if need check raw out - // const tmpFileName = `_${file.path.replace(/\//g, '-')}`; - // const tmpFilePath = path.join(api.paths.absOutputPath, tmpFileName); - // fs.writeFileSync(tmpFilePath, file.content, 'utf8'); - - // extract all emotion style tags from body - file.content = file.content.replace( - /