mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-15 14:03:36 +08:00
update element-plus@1.1.0-beta.6
This commit is contained in:
@@ -6,6 +6,7 @@ import { loadEnv } from "./build/utils";
|
||||
import { createProxy } from "./build/proxy";
|
||||
import { viteMockServe } from "vite-plugin-mock";
|
||||
import styleImport from "vite-plugin-style-import";
|
||||
import VitePluginElementPlus from "vite-plugin-element-plus";
|
||||
|
||||
const pathResolve = (dir: string): any => {
|
||||
return resolve(__dirname, ".", dir);
|
||||
@@ -53,18 +54,6 @@ export default ({ command }: ConfigEnv): UserConfigExport => {
|
||||
vueJsx(),
|
||||
styleImport({
|
||||
libs: [
|
||||
// 按需加载element-plus
|
||||
{
|
||||
libraryName: "element-plus",
|
||||
esModule: true,
|
||||
ensureStyleFile: true,
|
||||
resolveStyle: name => {
|
||||
return `element-plus/lib/theme-chalk/${name}.css`;
|
||||
},
|
||||
resolveComponent: name => {
|
||||
return `element-plus/lib/${name}`;
|
||||
}
|
||||
},
|
||||
// 按需加载vxe-table
|
||||
{
|
||||
libraryName: "vxe-table",
|
||||
@@ -74,6 +63,7 @@ export default ({ command }: ConfigEnv): UserConfigExport => {
|
||||
}
|
||||
]
|
||||
}),
|
||||
VitePluginElementPlus({ useSource: true }),
|
||||
viteMockServe({
|
||||
mockPath: "mock",
|
||||
localEnabled: command === "serve",
|
||||
|
||||
Reference in New Issue
Block a user