How to use the @kadira/storybook/dist/server/config/defaults/webpack.config function in @kadira/storybook

To help you get started, we’ve selected a few @kadira/storybook 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 OSBI / saiku-react-starter / storybook / webpack.config.js View on Github external
module.exports = function(config, env) {
  const newConfig = webpackConfigStorybook(config, env);

  newConfig.eslint = webpackConfigDev.eslint;

  newConfig.module.preLoaders = (newConfig.module.preLoaders || []).concat(webpackConfigDev.module.preLoaders);

  newConfig.module.loaders = (newConfig.module.loaders || []).concat(webpackConfigDev.module.loaders);

  return newConfig;
};