iterative/vscode-dvc

View on GitHub
webview/.storybook/main.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { StorybookConfig } from '@storybook/react-webpack5'
import webpackConfig from '../webpack.config'

export const config: StorybookConfig = {
  framework: {
    name: '@storybook/react-webpack5',
    options: { fastRefresh: true }
  },
  stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)'],
  staticDirs: ['../../extension/src/test/fixtures/plotsDiff/staticImages'],
  addons: [
    'storybook-addon-themes',
    {
      name: '@storybook/preset-scss',
      options: {
        cssLoaderOptions: {
          modules: {
            localIdentName: '[path][name]__[local]--[hash:base64:5]',
            auto: true
          }
        }
      }
    }
  ],
  typescript: {
    reactDocgen: false
  },
  webpackFinal: config => {
    return {
      ...config,
      module: webpackConfig.module,
      mode: 'development'
    }
  }
}

export default config