vite.config.ts 416 B

1234567891011121314151617181920212223
  1. import { fileURLToPath, URL } from 'node:url'
  2. import { defineConfig } from 'vite'
  3. import vue from '@vitejs/plugin-vue'
  4. export default defineConfig({
  5. plugins: [vue()],
  6. resolve: {
  7. alias: {
  8. '@': fileURLToPath(new URL('./src', import.meta.url))
  9. }
  10. },
  11. server: {
  12. host: '127.0.0.1'
  13. },
  14. preview: {
  15. host: '127.0.0.1'
  16. },
  17. build: {
  18. outDir: 'dist',
  19. chunkSizeWarningLimit: 900
  20. }
  21. })