197f40448e
- S 标从 2048 原图裁切:导航/页脚/admin 用 512 webp(96KB),favicon 32/64 圆角 png,apple-touch-icon 180 - OG 分享图用完整版 logo-full.jpg(含字标),index.html 补 og:title/description/image - 自绘 SVG logo 退役;原图 8.4MB 移入 design-assets/(已 gitignore,不进构建产物) - web/dist 总体积 1.0MB Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some Oxlint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Oxc
- @vitejs/plugin-react-swc uses SWC
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the Oxlint configuration
If you are developing a production application, we recommend enabling type-aware lint rules by installing oxlint-tsgolint and editing .oxlintrc.json:
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["react", "typescript", "oxc"],
"options": {
"typeAware": true
},
"rules": {
"react/rules-of-hooks": "error",
"react/only-export-components": ["warn", { "allowConstantExport": true }]
}
}
See the Oxlint rules documentation for the full list of rules and categories.