rollup-prerender-plugin
v0.1.1
Published
A small Rollup plugin to prerender output.
Downloads
3
Readme
Rollup Prerender Plugin
A small Rollup plugin to prerender output.
Install
npm i -D rollup-prerender-plugin
Usage
// rollup.config.js
import prerender from 'rollup-prerender-plugin'
export default {
input: 'src/index.js',
output: {
file: 'dist/bundle.js',
format: 'cjs'
},
plugins: [
prerender({})
]
}
Options
routes
Type: String
| Array[...String]
Default: ['/']
List of prerendering routes.
hook
Type: String
Default: 'closeBundle'
Rollup build hook to run the action.
removeScripts
Type: Boolean
Default: false
Remove all scripts tag from rendered html.
puppeteer
Type: Object
Default: {}
@prerenderer/renderer-puppeteer options.