2021-09-01 11:26:19 +08:00
|
|
|
import { defineConfig } from 'vite';
|
|
|
|
// import { viteMockServe } from 'vite-plugin-mock';
|
2021-08-26 11:25:15 +08:00
|
|
|
import vueJsx from '@vitejs/plugin-vue-jsx';
|
|
|
|
|
2021-09-01 11:26:19 +08:00
|
|
|
import vue from '@vitejs/plugin-vue';
|
2021-08-26 11:25:15 +08:00
|
|
|
|
2021-09-01 11:26:19 +08:00
|
|
|
// import proxy from './src/config/proxy';
|
|
|
|
// const HttpProxyAgent = require('http-proxy-agent');
|
|
|
|
const path = require('path');
|
2021-08-26 11:25:15 +08:00
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
|
|
|
base: './',
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'~': path.resolve(__dirname, './'),
|
|
|
|
'@': path.resolve(__dirname, './src'),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
vue(),
|
2021-09-01 11:26:19 +08:00
|
|
|
vueJsx(),
|
2021-08-26 11:25:15 +08:00
|
|
|
],
|
|
|
|
server: {
|
|
|
|
port: 3002,
|
|
|
|
},
|
2021-09-01 11:26:19 +08:00
|
|
|
});
|