From 987f2c9f8f2efbe4261850f5d72b1e14c3f3c787 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Mon, 27 Sep 2021 20:48:55 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E6=96=87=E4=BB=B6=E4=B8=BA=E5=BC=82=E6=AD=A5=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=EF=BC=8C=E5=9B=A0=E4=B8=BA=E5=9B=BE=E7=89=87=E4=BC=9A?= =?UTF-8?q?=E6=AF=94=E8=BE=83=E5=A4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/plugins/com.msgbyte.theme.miku/src/index.ts | 6 +++++- web/plugins/com.msgbyte.theme.miku/types/index.d.ts | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 web/plugins/com.msgbyte.theme.miku/types/index.d.ts diff --git a/web/plugins/com.msgbyte.theme.miku/src/index.ts b/web/plugins/com.msgbyte.theme.miku/src/index.ts index a6b93c97..e73e4165 100644 --- a/web/plugins/com.msgbyte.theme.miku/src/index.ts +++ b/web/plugins/com.msgbyte.theme.miku/src/index.ts @@ -1,7 +1,11 @@ import { regPluginColorScheme } from '@capital/common'; -import './theme.less'; regPluginColorScheme({ label: 'Miku 葱', name: 'light+miku', }); + +/** + * 异步加载以防止入口文件过大阻塞主应用加载(因为有图片) + */ +import('./theme.less'); diff --git a/web/plugins/com.msgbyte.theme.miku/types/index.d.ts b/web/plugins/com.msgbyte.theme.miku/types/index.d.ts new file mode 100644 index 00000000..1ea39606 --- /dev/null +++ b/web/plugins/com.msgbyte.theme.miku/types/index.d.ts @@ -0,0 +1 @@ +declare module '*.less';