Ver Fonte

fix: 修复vxe-table打包找不到css问题

xiaoxian521 há 3 anos atrás
pai
commit
f872ea1a23
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      vite.config.ts

+ 1 - 0
vite.config.ts

@@ -62,6 +62,7 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
           {
             libraryName: "vxe-table",
             esModule: true,
+            ensureStyleFile: true,
             resolveComponent: name => `vxe-table/es/${name}`,
             resolveStyle: name => `vxe-table/es/${name}/style.css`
           }