storybook/docs/_snippets/storybook-main-webpackfinal-example.md
2024-06-13 17:53:08 +01:00

375 B

export function webpackFinal(config, { configDir }) {
  if (!isReactScriptsInstalled()) {
    logger.info('=> Using base config because react-scripts is not installed.');
    return config;
  }

  logger.info('=> Loading create-react-app config.');
  return applyCRAWebpackConfig(config, configDir);
}