mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-11-10 07:48:22 +08:00
75df4f1672
* feat: update eslint config and npmpkg * feat: update color config * feat: eslint update * feat: update ts config Co-authored-by: yue.peng <yue.peng@ly.com> Co-authored-by: pengYYYYY <pengyue970715@gmail.com>
32 lines
583 B
TypeScript
32 lines
583 B
TypeScript
import { defineConfig } from 'vite';
|
|
import { viteMockServe } from 'vite-plugin-mock';
|
|
import createVuePlugin from '@vitejs/plugin-vue';
|
|
import vueJsx from '@vitejs/plugin-vue-jsx';
|
|
import svgLoader from 'vite-svg-loader';
|
|
|
|
import path from 'path';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
},
|
|
},
|
|
|
|
|
|
plugins: [
|
|
createVuePlugin(),
|
|
vueJsx(),
|
|
viteMockServe({
|
|
mockPath: 'mock',
|
|
localEnabled: true,
|
|
}),
|
|
svgLoader(),
|
|
],
|
|
|
|
server: {
|
|
port: 3002,
|
|
},
|
|
});
|