feat: format
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import path from 'path'
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from "@vitejs/plugin-vue";
|
||||
import path from "path";
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
@@ -9,23 +9,23 @@ export default defineConfig({
|
||||
resolve: {
|
||||
// 配置路径别名
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
},
|
||||
},
|
||||
// 开发服务器配置
|
||||
server: {
|
||||
// 代理配置示例
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://api.example.com',
|
||||
"/api": {
|
||||
target: "http://api.example.com",
|
||||
changeOrigin: true,
|
||||
rewrite: path => path.replace(/^\/api/, ''),
|
||||
rewrite: path => path.replace(/^\/api/, ""),
|
||||
},
|
||||
},
|
||||
},
|
||||
// 构建配置
|
||||
build: {
|
||||
outDir: '../cmd/gpt-load/dist',
|
||||
assetsDir: 'assets',
|
||||
outDir: "../cmd/gpt-load/dist",
|
||||
assetsDir: "assets",
|
||||
},
|
||||
})
|
||||
});
|
||||
|
Reference in New Issue
Block a user