Skip to content

Instantly share code, notes, and snippets.

@bryanmylee
Last active December 28, 2021 07:59
Show Gist options
  • Save bryanmylee/06e8094d7afe43231aa4771af1e3de33 to your computer and use it in GitHub Desktop.
Save bryanmylee/06e8094d7afe43231aa4771af1e3de33 to your computer and use it in GitHub Desktop.
Custom Webpack config for Storybook
const webpackConfig = require("./webpack.config.js");
module.exports = {
...,
core: {
builder: "webpack5",
},
webpackFinal: (config) => ({
...config,
module: {
rules: webpackConfig.module.rules,
},
resolve: {
...config.resolve,
...webpackConfig.resolve,
},
}),
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment