vite.config.js 450 B

12345678910111213141516
  1. import { fileURLToPath, URL } from 'node:url'
  2. import { defineConfig } from 'vite'
  3. import vue from '@vitejs/plugin-vue'
  4. // https://vitejs.dev/config/
  5. export default defineConfig({
  6. plugins: [vue()],
  7. resolve: {
  8. alias: {
  9. '@': fileURLToPath(new URL('./src', import.meta.url)),
  10. '@components': fileURLToPath(new URL('./src/components', import.meta.url)),
  11. '@api': fileURLToPath(new URL('./src/api', import.meta.url))
  12. }
  13. }
  14. })