0.1.1 • Published 3 years ago

spa-ssg v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Single page application static site generator (spa-ssg)

npm install -D spa-ssg

Ths is a wrapper around Playwright Firefox.

It takes the url of your live SPA dev server instance, and returns the DOM of the generated app as an html string.

const spassg = require('spa-ssg');

const url = 'http://localhost:1234/';

spassg(url).then((html) => {
  console.log(html);
});

⚠️ Currently only supports a single route (ie: the url above).


MIT

By Brian Zelip