灵感来自于 用微前端的方式搭建类单页应用(@美团技术团队)
- 异步加载子项目路由 -- 传送门
- 子项目支持单独开发,单独部署(避免前端巨无霸,多团队同时参与)
- 单一的入口 HTML(不同项目之间切换时无白屏现象)
- 支持多语言开发(JavaScript、TypeScript)
# 安装依赖
npm run bootstrap
# 开发模式
npm run serve
# 打开: http://localhost:10240/
# 生产构建
npm run build
micro-frontends-vue preload routes demo
Home Page: https://micro-frontends-vue.github.io/preload-routes/
灵感来自于 用微前端的方式搭建类单页应用(@美团技术团队)
# 安装依赖
npm run bootstrap
# 开发模式
npm run serve
# 打开: http://localhost:10240/
# 生产构建
npm run build
请问子项目 sub-app-js、sub-app-ts 能单独进行运行调试吗
比如子项目的全局css样式会影响父项目的css样式
大佬,这样放在一个项目里面,最终还是需要所有都要打包吧?? 能不能在主项目里面直接引用git仓库地址,然后自动化构建的时候 只构建更新过 commit 的子项目仓库, 没有更新过的就不需要重新构建了?
公司之前的做法的 iframe 的方案, 现在是想不用 iframe 来做,有没有方案可以交流下
config.optimization.splitChunks(false)
请问这行代码干什么,我以为是关闭组件拆分,可是为什么要关闭,能不能解释下
构建的时候还是会构建所有的子项目代码啊,如果一个团队一个子项目,某个子项目有问题就会导致项目构建失败,请问有解决办法吗,谢谢
可以像一些公共依耐放进主项目中吗?然后子项目直接引用,比如将vue放进主项目中,子项目就不去下载vue了。
1、主工程需要下载依赖包、applications下是否也需要下载依赖包
2、如果用ci打包,applications需不需要依赖于主工程
3、主工程与子工程是否可以放置在不同的仓库上
4、如果在开发阶段,applications是需要放置在主工程里面吗
例如js项目调用ts项目的组件,并将数据传输到ts项目的form表单中这种操作
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.