| 12345678910111213141516171819202122232425262728293031323334 |
- import { defineConfig } from "vite";
- import vue from "@vitejs/plugin-vue";
- import path from "path";
- export default defineConfig({
- plugins: [vue()],
- resolve: {
- alias: {
- "@": path.resolve(__dirname, "./src"),
- },
- },
- build: {
- outDir: 'dist',
- chunkSizeWarningLimit: 1000,
- cssMinify: true,
- minify: 'esbuild',
- rollupOptions: {
- output: {
- manualChunks: {
- 'three-vendor': ['three'],
- 'ui-vendor': ['lucide-vue-next', '@vueuse/core'],
- }
- }
- }
- },
- esbuild: {
- legalComments: 'none',
- target: 'esnext',
- },
- test: {
- globals: true,
- environment: "jsdom",
- },
- });
|