Mark
Mark

Reputation: 1872

Storybook 4 and a webpack.config?

So now with Storybook 4 out and it supports webpack 4, I am trying to figure where, how, and what is needed to integrate a webpack.config so I can add additional items such as webpackbar. My setup, which first in my master was the setup a storybook and then add things around it for a project. That said, here is a screenshot of my folder structure and all including my package.json:

enter image description here

An

Upvotes: 1

Views: 1235

Answers (1)

Ravinder Singh Rawat
Ravinder Singh Rawat

Reputation: 84

Not sure about storybook 4, but as per official storybook 5 documentation, you can pass your own custom webpack.config.js file, create this file inside .storybook folder.

To effectively customise the webpack config, you might need to get the full default config it's using.

https://storybook.js.org/docs/configurations/custom-webpack-config/

Upvotes: 1

Related Questions