tdesign-vue-next-starter/vite.config.ts
pengYYYYY f4c4cf7d9f fix/eslint (merge request !3)
Squash merge branch 'fix/eslint' into 'develop'
fix eslint error

Co-author: pengYYYYY <pengyue970715@gmail.com>
2021-09-01 03:31:48 +00:00

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,
},
});