feat:更新

This commit is contained in:
dengtongyu committed 2023-12-03 21:47:40 +08:00
1 parent 5bc01ab257
commit caf4fd2b86
55 files changed
+2666 -210

No files matched your search

+23 -8
View File
@@ -1,8 +1,10 @@
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import proxyConfig from './proxy.config'
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import vueJsx from "@vitejs/plugin-vue-jsx";
import legacy from "@vitejs/plugin-legacy";
import VueSetupExtend from "vite-plugin-vue-setup-extend";
import proxyConfig from "./proxy.config";
// https://vitejs.dev/config/
export default defineConfig({
@@ -11,13 +13,26 @@ export default defineConfig({
plugins: [
vue(),
vueJsx(),
VueSetupExtend(),
legacy({
// targets: ["defaults", "not IE 11"],
targets: {
"chrome": "120"
},
additionalLegacyPolyfills: ["regenerator-runtime/runtime"],
renderLegacyChunks: true,
polyfills: [
"es.array.to-reversed"
]
})
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
"@": fileURLToPath(new URL("./src", import.meta.url))
}
},
server: {
proxy: proxyConfig
},
})
}
});