mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-11-10 10:58:25 +08:00
f4c4cf7d9f
Squash merge branch 'fix/eslint' into 'develop' fix eslint error Co-author: pengYYYYY <pengyue970715@gmail.com>
28 lines
583 B
TypeScript
28 lines
583 B
TypeScript
import { defineConfig } from 'vite';
|
|
// import { viteMockServe } from 'vite-plugin-mock';
|
|
import vueJsx from '@vitejs/plugin-vue-jsx';
|
|
|
|
import vue from '@vitejs/plugin-vue';
|
|
|
|
// import proxy from './src/config/proxy';
|
|
// const HttpProxyAgent = require('http-proxy-agent');
|
|
const path = require('path');
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
base: './',
|
|
resolve: {
|
|
alias: {
|
|
'~': path.resolve(__dirname, './'),
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
plugins: [
|
|
vue(),
|
|
vueJsx(),
|
|
],
|
|
server: {
|
|
port: 3002,
|
|
},
|
|
});
|