Add monitoring metrics, numeric sorting, report-time display, vehicle number labels, and map layout fixes. Include accumulated mileage, hydrogen, OneOS authentication, open platform, ingestion, deployment, and UI updates. Exclude temporary files, generated reports, and credentials. Validate frontend 632 tests and production build, API packages, vehicle-map tests, and release installer tests. Gateway suite has one pre-existing date-sensitive identity throttling test failure reproduced on the parent commit.
38 lines
1.1 KiB
TypeScript
38 lines
1.1 KiB
TypeScript
import react from '@vitejs/plugin-react';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import { defineConfig } from 'vite';
|
|
import { resolve } from 'node:path';
|
|
|
|
const apiProxyTarget = process.env.VITE_API_PROXY_TARGET || 'http://127.0.0.1:20300';
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
resolve: { alias: { '@': resolve(__dirname, 'src') } },
|
|
build: {
|
|
rollupOptions: {
|
|
output: {
|
|
manualChunks(id) {
|
|
if (id.includes('/src/components/ui/') || id.includes('/node_modules/') && /(?:radix-ui|cmdk|lucide-react|class-variance-authority|tailwind-merge|clsx)/.test(id)) return 'business-ui';
|
|
}
|
|
},
|
|
input: {
|
|
app: resolve(__dirname, 'index.html'),
|
|
semiPrototype: resolve(__dirname, 'semi-prototype.html')
|
|
}
|
|
}
|
|
},
|
|
worker: {
|
|
format: 'es'
|
|
},
|
|
server: {
|
|
proxy: {
|
|
'/api': { target: apiProxyTarget, changeOrigin: true },
|
|
'/_AMapService': { target: apiProxyTarget, changeOrigin: true }
|
|
}
|
|
},
|
|
test: {
|
|
environment: 'jsdom',
|
|
setupFiles: './src/test/setup.ts'
|
|
}
|
|
});
|