mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-11-10 07:28:24 +08:00
28 lines
570 B
TypeScript
28 lines
570 B
TypeScript
|
import { defineConfig } from 'vite'
|
||
|
import { viteMockServe } from 'vite-plugin-mock';
|
||
|
const HttpProxyAgent = require('http-proxy-agent');
|
||
|
import vueJsx from '@vitejs/plugin-vue-jsx';
|
||
|
|
||
|
import vue from '@vitejs/plugin-vue'
|
||
|
const path = require('path');
|
||
|
|
||
|
import proxy from './src/config/proxy';
|
||
|
|
||
|
// https://vitejs.dev/config/
|
||
|
export default defineConfig({
|
||
|
base: './',
|
||
|
resolve: {
|
||
|
alias: {
|
||
|
'~': path.resolve(__dirname, './'),
|
||
|
'@': path.resolve(__dirname, './src'),
|
||
|
},
|
||
|
},
|
||
|
plugins: [
|
||
|
vue(),
|
||
|
vueJsx()
|
||
|
],
|
||
|
server: {
|
||
|
port: 3002,
|
||
|
},
|
||
|
})
|