大屏页面布局
This commit is contained in:
@@ -14,13 +14,15 @@ export default defineConfig({
|
||||
'@': path.resolve(__dirname, './src')
|
||||
}
|
||||
},
|
||||
// 开发环境代理(适配后端接口)
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: 5173,
|
||||
open: true,
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://127.0.0.1:31001',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, '')
|
||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -28,6 +30,7 @@ export default defineConfig({
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
base: '/',
|
||||
assetsDir: 'assets'
|
||||
assetsDir: 'assets',
|
||||
chunkSizeWarningLimit: 1500
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user