diff --git a/package.json b/package.json index fccc2dd..568402f 100644 --- a/package.json +++ b/package.json @@ -5,33 +5,7 @@ "type": "module", "scripts": { "dev": "vite", - "build": "tsc && vite build", - "lint": "eslint .", + "build": "tsc --noEmit && vite build", "preview": "vite preview" - }, - "dependencies": { - "@emotion/react": "^11.14.0", - "@emotion/styled": "^11.14.0", - "@mui/icons-material": "^6.4.5", - "@mui/material": "^6.4.5", - "@types/uuid": "^10.0.0", - "chart.js": "^4.4.7", - "react": "^19.0.0", - "react-chartjs-2": "^5.3.0", - "react-dom": "^19.0.0", - "uuid": "^11.0.5" - }, - "devDependencies": { - "@eslint/js": "^9.19.0", - "@types/react": "^19.0.8", - "@types/react-dom": "^19.0.3", - "@vitejs/plugin-react": "^4.3.4", - "eslint": "^9.19.0", - "eslint-plugin-react-hooks": "^5.0.0", - "eslint-plugin-react-refresh": "^0.4.18", - "globals": "^15.14.0", - "typescript": "~5.7.2", - "typescript-eslint": "^8.22.0", - "vite": "^6.1.0" } } diff --git a/vite.config.ts b/vite.config.ts index 5252793..a77d620 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -3,10 +3,11 @@ import react from '@vitejs/plugin-react' export default defineConfig({ plugins: [react()], - base: '/', // 修改这里 + base: './', // 修改这里 build: { outDir: 'dist', assetsDir: 'assets', - sourcemap: false + sourcemap: true, // 添加这行以便调试 + minify: true } })