Inspired by 用微前端的方式搭建类单页应用(@美团技术团队)
# make 'install.sh' and 'serve.sh' executable
chmod 777 install.sh
# install dependencies
./install.sh
# development serve
# dev entry-app
cd entry-app
yarn serve
# open a new shell, dev sub-app
cd sub-app-one
yarn serve
# open a new shell, dev sub-app
cd sub-app-two
yarn serve
# open: http://localhost:7300/
# production build
yarn build
# production build with serve
yarn build:serve
# open: http://localhost:3000/