@mediacurrent/storybook-config-gatsby

Storybook webpack config for Gatsby projects at Mediacurrent

Usage no npm install needed!

<script type="module">
  import mediacurrentStorybookConfigGatsby from 'https://cdn.skypack.dev/@mediacurrent/storybook-config-gatsby';
</script>

README

storybook-config-gatsby

The webpack config for using Storybook with Gatsby on Mediacurrent projects.

Usage

In your .storybook/webpack.config.js file, put the following:

const sharedConfig = require('@mediacurrent/storybook-config-gatsby')
module.exports = ({ config }) => {
  const newConfig = sharedConfig(config);
  // Overrides here like:
  // newConfig.module.rules = foo
  return newConfig;
};