vite.config.js 388 B

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