先提交一波
This commit is contained in:
@@ -6,10 +6,13 @@ export default defineConfig({
|
||||
extensions: ['.vue', '.mjs', '.js', '.ts', '.jsx', '.tsx', '.json'],
|
||||
},
|
||||
plugins: [createVuePlugin({jsx: true})],
|
||||
optimizeDeps: {
|
||||
esbuildOptions: {keepNames: true}
|
||||
},
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: 8666,
|
||||
open: 'index.html',
|
||||
open: true,
|
||||
proxy: {
|
||||
//设置代理,可解决跨5
|
||||
'/lan': {
|
||||
@@ -32,6 +35,9 @@ export default defineConfig({
|
||||
changeOrigin: true,
|
||||
rewrite: path => path.replace(/^\/xsjr/, '')
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
usePolling: true
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user