chore: 优化 vite 配置

This commit is contained in:
xingyu4j
2022-12-01 17:57:55 +08:00
parent edcde037a9
commit 0b820657a6
11 changed files with 140 additions and 770 deletions

View 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`
}
}
]
}