vite.config.js 474 B

1234567891011121314151617181920
  1. import { defineConfig } from 'vite'
  2. import vue from '@vitejs/plugin-vue'
  3. import AutoImport from 'unplugin-auto-import/vite'
  4. import Components from 'unplugin-vue-components/vite'
  5. import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
  6. // https://vitejs.dev/config/
  7. export default defineConfig({
  8. plugins: [
  9. vue(),
  10. Components({
  11. resolvers: [ElementPlusResolver()]
  12. }),
  13. AutoImport({
  14. resolvers: [ElementPlusResolver()]
  15. })
  16. ]
  17. })