How to use the @kadira/storybook/dist/server/config/defaults/webpack.config.js 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 govau / performance-dashboard / client / .storybook / webpack.config.js View on Github external
module.exports = function(config, env) {

  var config = genDefaultConfig(config, env);

  // Extend it as you need.

  config.module.loaders = [...config.module.loaders,
    {
      test: /\.scss$/,
      loaders: ["style", "css", "resolve-url", "sass?sourceMap"],
    }
  ];

  config.resolve.extensions = [...config.resolve.extensions, '.scss'];

  return config;
};
github MCS-Lite / mcs-lite / packages / mcs-lite-ui / .storybook / webpack.config.js View on Github external
module.exports = function(config, env) {
  var config = genDefaultConfig(config, env);

  const loaders = config.module.loaders.map(e => {
    if (e.test.toString() === '/\\.css?$/') {
      delete e.include;
    }

    return e;
  });

  config.module.loaders = loaders;

  return config;
};
github tannerlinsley / react-charts / .storybook / webpack.config.js View on Github external
module.exports = (config, env) => {
  config = genDefaultConfig(config, env)

  Object.assign(config, {
    module: Object.assign(config.module, {
      loaders: config.module.loaders.concat([{
        test: /\.md$/,
        loader: 'html!markdown',
        include: path.resolve(__dirname, '../')
      }, {
        test: /\.html$/,
        loader: 'html',
        query: {
          minimize: true
        },
        include: path.resolve(__dirname, '../')
      }])
    }),
github sematext / sematable / .storybook / webpack.config.js View on Github external
module.exports = function(config, env) {
  const defaultConfig = genDefaultConfig(config, env);
  const withOldPlugin = Object.assign({}, defaultConfig, {
     plugins: defaultConfig.plugins.concat([
       new webpack.OldWatchingPlugin(),
    ]),
    resolve: Object.assign({}, defaultConfig.resolve, {
      alias: Object.assign({}, defaultConfig.resolve.alias, {
        bootstrapCss: path.join(
          __dirname,
          '../stories/bootstrap/v' + bootstrapVersion + '/css/bootstrap.min.css'
        ),
      }),
    }),
   })
  return withOldPlugin;
};
github fdaciuk / react-trianglify / storybook / webpack.config.js View on Github external
module.exports = function (config, env) {
  const newConfig = webpackConfig(config, env)

  newConfig.module.preLoaders = (newConfig.module.preLoaders || []).concat({
    test: /\.js$/,
    include: join(__dirname, '..', 'src'),
    loader: 'standard'
  })

  return newConfig
}
github alanzanattadev / atom-molecule-dev-environment / .storybook / webpack.config.js View on Github external
module.exports = function(config, env) {
  var config = genDefaultConfig(config, env);

  return Object.assign({}, config, {
    resolve: Object.assign({}, config.resolve, {
      alias: {
        electron: path.join(__dirname, "fake/electron.js"),
        remote: path.join(__dirname, "fake/electron.js"),
      },
    }),
  });
};