New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

happo-plugin-puppeteer

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

happo-plugin-puppeteer

A plugin for happo.io that makes examples pre-render in a real browser (Chrome) instead of JSDOM

latest
Source
npmnpm
Version
1.3.2
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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'] }.

FAQs

Package last updated on 16 Jun 2020

Related posts