1.0.2 • Published 4 years ago
netlify-plugin-prerender-spa v1.0.2
Netlify Plugin - Prerender SPA
This is a Netlify build plugin that prerenders pages in a SPA. Under the hood, the plugin uses React-Snap, a zero-config framework-agnostic static prerendering library for SPAs.
Installation
To include this plugin in your site deployment:
1. Add the plugin as a dependency
# Add the plugin as a dependency to your build
npm i --s netlify-plugin-prerender-spa
2. Add the plugin and its options to your netlify.toml
You can use the default options for prerendering or add customizations via the plugins inputs like so:
# Config for the Netlify Build Plugin: netlify-plugin-minify-html
[[plugins]]
package = "netlify-plugin-prerender-spa"
[plugins.inputs]
source = "dist"