- Install latest LTS version Node.js (tested on v10.16.3)
- Install packages for the root folder and demofolder by running commandnpm installaccordingly
- Build libby runningnpm run buildornpm run build-js-watchin the oot folder of the project to enable watch mode (Since this package is not published, we have to manually build)
- Start dev server for demoby runnpm startindemofolder
- Checkout http://localhost:1234/
- same as step 1~3 above.
- Run npm run buildindemofolder.
- You can find the bundle in demo/dist
- Because of the security issue of browsers, you can't just open index.htmlindemo\dist. You should host these files on a server. For example, you can execute a command likenpx live-server demo/distto run a web server locally.
Author: Leonard Lin