chore: bump version to 0.7.1
This commit is contained in:
19
frontend/vite.config.js
Normal file
19
frontend/vite.config.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
server: {
|
||||
host: '127.0.0.1',
|
||||
port: 5173,
|
||||
strictPort: false, // 当端口被占用时自动尝试下一个可用端口
|
||||
cors: true
|
||||
},
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
assetsDir: 'assets',
|
||||
// 使用相对路径而不是绝对路径
|
||||
base: './'
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user