1.3.2 • Published 4 years ago

happo-plugin-puppeteer v1.3.2

Weekly downloads
22
License
MIT
Repository
github
Last release
4 years ago

happo-plugin-puppeteer

A Happo plugin that will replace the default JSDOM pre-rendering with a Puppeteer (which uses Chrome). This plugin can come in handy if you for instance need proper DOM measurements in your Happo examples.

Usage

Make sure to first install the plugin:

npm install --save-dev happo-plugin-puppeteer

Then, add this to your plugins section of your .happo.js config file:

const happoPluginPuppeteer = require('happo-plugin-puppeteer');

module.exports = {
  plugins: [
    happoPluginPuppeteer({
      // ... options go here
    }),
  ],
}

Options

  • launchOptions - options passed to puppeteer.launch. E.g. { args: ['--no-sandbox'] }.
1.3.2

4 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.1-0

5 years ago

1.2.0

5 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago

1.0.0-rc.3

6 years ago

1.0.0-rc.2

6 years ago

1.0.0-rc.1

6 years ago