Last active
December 28, 2021 07:59
-
-
Save bryanmylee/06e8094d7afe43231aa4771af1e3de33 to your computer and use it in GitHub Desktop.
Custom Webpack config for Storybook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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