vite.config.ts 661 B

12345678910111213141516171819202122232425262728293031323334
  1. import { defineConfig } from "vite";
  2. import vue from "@vitejs/plugin-vue";
  3. import path from "path";
  4. export default defineConfig({
  5. plugins: [vue()],
  6. resolve: {
  7. alias: {
  8. "@": path.resolve(__dirname, "./src"),
  9. },
  10. },
  11. build: {
  12. outDir: 'dist',
  13. chunkSizeWarningLimit: 1000,
  14. cssMinify: true,
  15. minify: 'esbuild',
  16. rollupOptions: {
  17. output: {
  18. manualChunks: {
  19. 'three-vendor': ['three'],
  20. 'ui-vendor': ['lucide-vue-next', '@vueuse/core'],
  21. }
  22. }
  23. }
  24. },
  25. esbuild: {
  26. legalComments: 'none',
  27. target: 'esnext',
  28. },
  29. test: {
  30. globals: true,
  31. environment: "jsdom",
  32. },
  33. });