vite.config.js 432 B

12345678910111213141516171819202122
  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. resolve: {
  7. alias: {
  8. '@': fileURLToPath(new URL('./src', import.meta.url))
  9. }
  10. },
  11. server: {
  12. port: 5173,
  13. host: true
  14. },
  15. build: {
  16. outDir: 'dist',
  17. assetsDir: 'assets',
  18. sourcemap: false,
  19. chunkSizeWarningLimit: 1000
  20. }
  21. })