- Htmls are generated from Pug templates via Rollup + Gulp
- The React app is built via Webpack and is integrated on run time via pug as external js script.
- Generated htmls are served via Webpack (Can be served by any http server but Webpack enables hot-module-reloading for React apps)
- for React app, any changes will make the app part of the page to hot-reload
- for Static website, the page needs to be manually refreshed
npm i
cd app && npm i
npm start
cd app && npm start
http://localhost:7000/airbnb
Demo screenshot