Skip to content
This repository has been archived by the owner on Jun 5, 2019. It is now read-only.

Latest commit

 

History

History
31 lines (24 loc) · 926 Bytes

Readme.md

File metadata and controls

31 lines (24 loc) · 926 Bytes

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