Files
DDDMicroFrontend/front-end/app-product/README.md
2025-09-18 01:50:50 +08:00

10 lines
383 B
Markdown

npm install
npm run build
npm run serve
构建与部署:
- 在构建生产环境时,先构建主模块,并将其产出(特别是 remoteEntry.js 和对应的资产文件)部署到服务器,并获取其 URL。
- 然后,在子模块的 vite.config.ts 中,将 remotes 的 URL 更新为生产环境主模块 remoteEntry.js 的绝对 URL。
- 最后再构建子模块。