rollup-prerender-plugin

0.1.1 • Public • Published

Rollup Prerender Plugin

npm npm npm

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.

Readme

Keywords

none

Package Sidebar

Install

npm i rollup-prerender-plugin

Weekly Downloads

0

Version

0.1.1

License

ISC

Unpacked Size

5.23 kB

Total Files

6

Last publish

Collaborators

  • nainemom