spa-ssg
v0.1.1
Published
Single page application static site generator
Downloads
2
Maintainers
Readme
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