P3: 前端工程化搭建 - Vite + React 多入口脚手架
- vite.config.js 双入口(前台 index + 后台 admin),产物输出 public/dist
- 前台 App 布局壳 + 11 条路由占位;api client/theme/utils 共享层
- index.html 保留 ${site_name} 等占位符与 style.css 引用(UI 100% 还原基础)
- dev 代理 3101,构建产物 gitignored
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import React from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
|
||||
function AdminPlaceholder() {
|
||||
return <div style={{ padding: '48px', textAlign: 'center', fontFamily: 'system-ui, sans-serif' }}>后台建设中</div>;
|
||||
}
|
||||
|
||||
createRoot(document.getElementById('root')).render(<AdminPlaceholder />);
|
||||
Reference in New Issue
Block a user