vite.config.js 395 B

123456789101112131415161718192021
  1. import { defineConfig } from 'vite'
  2. import vue from '@vitejs/plugin-vue'
  3. import { fileURLToPath, URL } from 'node:url'
  4. export default defineConfig({
  5. plugins: [vue()],
  6. base: '/',
  7. resolve: {
  8. alias: {
  9. '@': fileURLToPath(new URL('./src', import.meta.url))
  10. }
  11. },
  12. server: {
  13. port: 8080,
  14. host: true,
  15. watch: {
  16. usePolling: true,
  17. interval: 1000
  18. }
  19. }
  20. })