Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Instructions for using happo-plugin-storybook

First, install the latest happo packages:

yarn add --dev happo-plugin-storybook@latest

Add the plugin to .happo.js:

const happoPluginStorybook = require('happo-plugin-storybook');
// ...
plugins: [happoPluginStorybook()],

Then, register the plugin in .storybook/config.js:

// somewhere at the top
import 'happo-plugin-storybook/register';

All set! Now run the happo run command:

yarn happo run

The plugin README has more info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment