mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-06 23:25:06 +08:00
chore: 优化 vite 配置
This commit is contained in:
18
yudao-ui-admin-vue3/build/vite/styleImport.ts
Normal file
18
yudao-ui-admin-vue3/build/vite/styleImport.ts
Normal file
@ -0,0 +1,18 @@
|
||||
export const styleImportPlugin = {
|
||||
libs: [
|
||||
{
|
||||
libraryName: 'element-plus',
|
||||
esModule: true,
|
||||
resolveStyle: (name) => {
|
||||
return `element-plus/es/components/${name.substring(3)}/style/css`
|
||||
}
|
||||
},
|
||||
{
|
||||
libraryName: 'vxe-table',
|
||||
esModule: true,
|
||||
resolveStyle: (name) => {
|
||||
return `vxe-table/es/${name}/style.css`
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user