Socket
Book a DemoInstallSign in
Socket

@inspirationlabs/prerenderer

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inspirationlabs/prerenderer

This prerenderer is a standalone solution to prerender pages created with stencil [stenciljs](https://www.stenciljs.com).

0.3.0
latest
npmnpm
Version published
Maintainers
2
Created
Source

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

FAQs

Package last updated on 23 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.