This commit is contained in:
dongruihua
2022-11-21 11:00:15 +08:00
commit bf948ee227
104 changed files with 39756 additions and 0 deletions

36
vite.config.js Normal file
View File

@@ -0,0 +1,36 @@
import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import legacy from '@vitejs/plugin-legacy'
import {viteMockServe} from 'vite-plugin-mock'
const path = require('path')
export default defineConfig(({command}) =>
({
plugins: [
vue(),
legacy({
targets: ['chrome 52', 'defaults', 'not IE 11']
}),
viteMockServe({
mockPath: './src/mock/mocks',
injectCode: `
console.log(111111111)
`,
})
],
resolve: {
alias: [
{find: '@', replacement: path.resolve(__dirname, 'src')}
]
}, server: {
proxy: {
'/file/upload': {
target: 'http://111.231.196.214:30001',
changeOrigin: true,
}
}
}
})
)