styleImport.ts 390 B

123456789101112131415161718
  1. export const styleImportPlugin = {
  2. libs: [
  3. {
  4. libraryName: 'element-plus',
  5. esModule: true,
  6. resolveStyle: (name) => {
  7. return `element-plus/es/components/${name.substring(3)}/style/css`
  8. }
  9. },
  10. {
  11. libraryName: 'vxe-table',
  12. esModule: true,
  13. resolveStyle: (name) => {
  14. return `vxe-table/es/${name}/style.css`
  15. }
  16. }
  17. ]
  18. }