Play with pkg to bundle offline content in a binary, to serve through local server
Demo PKG binary to serve html content
Steps to test
- Execute
./retrieve.sh
- Install pkg with
npm i -g pkg
npm run build
to build binary
- click on the binary if through GUI otherwise , via a command line, do either
./server-static-offline-linux
, ./server-static-offline-macos
or server-static-offline-win.exe
depending of your OS.
- open a browser at http://localhost:8081/ to see local website