This prerenderer is a standalone solution to prerender pages created with stencil stenciljs.
- 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
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.
npm run build