Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
webpack configuration to work with storybook and apollo-client
// load the default config generator.
var genDefaultConfig = require('@kadira/storybook/dist/server/config/defaults/webpack.config.js');
module.exports = function (config, env) {
var conf = genDefaultConfig(config, env);
// add es6 support for node_modules
// config structure is here
conf.module.loaders[0].exclude = /node_modules\/(?!(apollo-client)\/).*/;
return conf;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment