123456789101112131415161718192021222324 |
- import vue from '@vitejs/plugin-vue';
- import { defineConfig } from '@midwayjs/hooks-kit';
- import AutoImport from 'unplugin-auto-import/vite';
- import Components from 'unplugin-vue-components/vite';
- import { ElementPlusResolver } from 'unplugin-vue-components/resolvers';
- export default defineConfig({
- vite: {
- plugins: [
- vue(),
- AutoImport({
- resolvers: [ElementPlusResolver()],
- }),
- Components({
- resolvers: [ElementPlusResolver()],
- }),
- ],
- server: {
- port: 27011,
- hmr: {
- overlay: false,
- },
- },
- },
- });
|