vite.config.ts 415 B

123456789101112131415161718192021222324
  1. import { defineConfig } from 'vite'
  2. import react from '@vitejs/plugin-react'
  3. import tsconfigPaths from "vite-tsconfig-paths";
  4. export default defineConfig({
  5. server: {
  6. host: true,
  7. port: 6077,
  8. strictPort: false,
  9. },
  10. build: {
  11. sourcemap: 'hidden',
  12. },
  13. plugins: [
  14. react({
  15. babel: {
  16. plugins: [
  17. 'react-dev-locator',
  18. ],
  19. },
  20. }),
  21. tsconfigPaths()
  22. ],
  23. })