vue-pro/yudao-ui-admin-vue3/build/vite/styleImport.ts

19 lines
390 B
TypeScript
Raw Normal View History

2022-12-01 17:57:55 +08:00
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`
}
}
]
}