static-export

1.0.6 • Public • Published

static-export

Pre-renders a web app to static HTML. Perfect for:

  • Progressive Web Applications (PWAs)
  • Regular ol' Single-Page Applications (SPAs)
  • TODO: The website that just needs to be written in the next-best-thing but doesn't run on your server

Installation

npm install -g static-export

Usage

Ensure your web app is present in ./build of your project directory, and run static-export. New HTML files with pre-rendered content are placed alongside existing static assets in ./build.

See static-export --help for more.

Compatibility

static-export uses Chromium (controlled by puppeteer) to load your web app and pushstate-server to serve it, so any client-side JavaScript required to load the initial content should continue to work as long as it runs in a normal browser session.

LICENSE

This project is licensed under the MIT License.

/static-export/

    Package Sidebar

    Install

    npm i static-export

    Weekly Downloads

    6

    Version

    1.0.6

    License

    MIT

    Last publish

    Collaborators

    • slogsdon