This commit is contained in:
张成
2026-03-24 11:18:40 +08:00
parent 6de4936012
commit c3623d4a95
4 changed files with 380 additions and 10 deletions

View File

@@ -240,13 +240,11 @@ const config = {
## 开发建议
1. **开发时使用 build:dev**
- 生成 sourcemap方便调试
- 代码不压缩,易读
1. **框架产物**
- 在仓库根目录执行 `npm run build`,生成 `dist/admin-framework.js`UMD、压缩
2. **生产时使用 build**
- 代码压缩,体积小
- 无 sourcemap安全
2. **调试**
- 需要跟源码时可在业务工程中直接引用框架 `src/index.js` 并配置 Webpack或使用 `window.framework` / `window.rootVue`
3. **使用浏览器调试工具**
```javascript