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';