Closed justinsisley closed 7 years ago
const Chromy = require('chromy')
async function buildStatic() {
let chromy = new Chromy()
await chromy.goto('http://localhost:3325/')
const result = await chromy.evaluate(() => {
return document.querySelector('html').innerHTML;
});
console.log(result)
await chromy.close()
};
module.exports = buildStatic;
Can steal ideas from https://github.com/egoist/presite