Skip to content

Instantly share code, notes, and snippets.

@maxmckenzie
Created August 17, 2019 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxmckenzie/ddd2b66316a614a678bf3c8b8682cc6a to your computer and use it in GitHub Desktop.
Save maxmckenzie/ddd2b66316a614a678bf3c8b8682cc6a to your computer and use it in GitHub Desktop.
storybook webpack
const path = require('path');
// your app's webpack.config.js
const custom = require('../build/webpack.base.js');
module.exports = async ({ config, mode }) => {
return { ...config,
module: {
...config.module,
rules: custom.module.rules,
},
resolve: custom.resolve
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment