From 4ce07e150c0bd3903cc5f43fcd88c2cb292d7690 Mon Sep 17 00:00:00 2001 From: kailong321200875 <321200875@qq.com> Date: Wed, 9 Aug 2023 17:04:41 +0800 Subject: [PATCH] fix: #307 --- vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index fd06ffa..86dbbcc 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -45,7 +45,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => { if (name === 'click-outside') { return '' } - return `element-plus/es/components/${name.substring(3)}/style/css` + return `element-plus/es/components/${name.replace(/^el-/, '')}/style/css` } }] }),