@inspirationlabs/prerenderer
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

Prerenderer for stenciljs

This prerenderer is a standalone solution to prerender pages created with stencil stenciljs.

Todo

  • Use puppeteer-core and detect the installation path of a installed chromium / chrome version
  • Unit tests
  • Create a function to predefine a list of urls which should be rendered instead of crawling
  • Realtime SSR
  • Including with stencil executable / core
  • Copy build folders to destination
  • Solving waitFor load completed

Run

If installed globally run

prerenderer srcFolder dstFolder

If running from a local checkout run

node ./dist/PrerenderManager.js srcFolder dstFolder

After a npm run build without activated prerenderer the sourcefolder is typically www. Currently it's needed to create the destination folder manually and copy the build folders after the prerender into it.

Building the package

npm run build

Readme

Keywords

none

Package Sidebar

Install

npm i @inspirationlabs/prerenderer

Weekly Downloads

6

Version

0.3.0

License

MIT

Unpacked Size

30.3 kB

Total Files

19

Last publish

Collaborators

  • alexanderknapstein
  • dominicboettger