|
@@ -3,11 +3,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 vueDevTools from "vite-plugin-vue-devtools"
|
|
|
|
|
|
// https://vite.dev/config/
|
|
|
export default defineConfig({
|
|
|
- plugins: [vue(), vueJsx(), vueDevTools()],
|
|
|
+ plugins: [vue(), vueJsx()],
|
|
|
css: {
|
|
|
preprocessorOptions: {
|
|
|
scss: {
|
|
@@ -25,10 +24,10 @@ export default defineConfig({
|
|
|
host: "0.0.0.0",
|
|
|
proxy: {
|
|
|
// 正则表达式写法
|
|
|
- "^/pptApi/.*": {
|
|
|
+ "^/rhythmApi/.*": {
|
|
|
target: "https://dev.kt.colexiu.com",
|
|
|
changeOrigin: true,
|
|
|
- rewrite: path => path.replace(/^\/pptApi/, "")
|
|
|
+ rewrite: path => path.replace(/^\/rhythmApi/, "")
|
|
|
}
|
|
|
}
|
|
|
}
|