先提交一波

This commit is contained in:
aixianling
2022-05-10 09:21:07 +08:00
parent 2f79210970
commit 73f300cd7a
3 changed files with 9 additions and 3 deletions

View File

@@ -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
}
}
})