pkg-and-serve
v1.1.2
Published
boilerplate for packaging a static server with an app in an exe
Downloads
1
Readme
pkg-and-serve
This project allows you to package a static website as a single executable file. This executable will start a local server hosting your site, open it in the user's default browser, and shut itself down when the site is closed.
Note that this is most useful for quickly creating a shareable file for testing/portable deployment, and will usually be a less ideal user experience when compared with a full desktop application (e.g. with Electron).
Usage
As command-line tool
npx pkg-and-serve [input] [output]
As boilerplate project
- clone
npm i
- replace contents of
./app
with your app - update
name
inpkg.config.json
- add additional localhost endpoints in
server.js
if needed npm run build
- self-contained build outputs will be in
./build