mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-11-10 10:48:25 +08:00
baf43fb503
* style: ui edit。 * feat: ui edit complete * style: ui edit * chore: update style import path * feat: update import path * chore: lint fix * feat: add package.lok * chore: update node version * chore: update actions * chore: remove lock file * fix: node version update * fix: revert preview actiion * fix: tdesign-wrapper classname fix * feat: add router permission * feat: enhance router * feat: optimize header icon Co-authored-by: pengYYY <pengyue970715@gmail.com>
34 lines
642 B
TypeScript
34 lines
642 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,
|
|
proxy: {
|
|
'/api': 'http://127.0.0.1:3000/',
|
|
},
|
|
},
|
|
});
|