Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trotzig/17e7298887f16167d83ca4bb8bf2ce74 to your computer and use it in GitHub Desktop.
Save trotzig/17e7298887f16167d83ca4bb8bf2ce74 to your computer and use it in GitHub Desktop.
Instructions for using happo-plugin-storybook

First, install the latest happo packages:

yarn add --dev happo-plugin-storybook@latest happo.io@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 https://github.com/happo/happo-plugin-storybook

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