How to use the @storybook/react/dist/server/config/webpack.config.default function in @storybook/react

To help you get started, we’ve selected a few @storybook/react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github c8r / kit / storybook / cli.js View on Github external
#!/usr/bin/env node
const path = require('path')
const meow = require('meow')
const { buildDev, configLoaderCreator } = require('@storybook/core/server')
const webpack = require('webpack')

// https://github.com/storybooks/storybook/blob/master/app/react/src/server/config.js
const defaultConfig = require('@storybook/react/dist/server/config/babel')
const wrapBabelConfig = require('@storybook/react/dist/server/wrapBabelConfig')
  .default
const getBaseConfig = require('@storybook/react/dist/server/config/webpack.config')
  .default

const cli = meow(
  `
  Usage

    $ kit-storybook examples

  Options
    -p --port   Port for Storybook development server
    --name      Name displayed in storybook (default Kit Examples)
`,
  {
    flags: {
      port: {
        type: 'string',