Comments (4)
Yes. Sure. I'm open to that.
Let's do like this.
- We support another config file called
webpack.devoptions.json
(or whatever the name works best) - We can add additional config inside that.
- Then let's use it here with these default options: https://github.com/kadirahq/react-storybook/blob/master/src/server/index.js#L45
That's how I like to do it. But, I am open to suggestions.
from storybook.
Here is another reason why this would be good. I would like to use React Storybook to test Redux containers which make API requests to my backend. I think there's room for a middle ground between developing the full-fledged app (which wouldn't use Storybook) and developing pure UI components (which wouldn't make API requests). For example, I have a search result container that I want to develop in isolation.
If we have webpack.devoptions.json, I can add a custom host and https to the middleware config.
from storybook.
@awright415 what OS are you on?
I'm also trying to run Storybook inside of Docker (on Windows)
I tried adding
watchOptions: {
poll: 1000,
},
to my webpack config and I see a bundle rebuilding, but after that nothing in Storybook actually updates.
from storybook.
This is supported now:
https://github.com/storybooks/storybook/blob/67d6af3670e93364590a9a9423442cc6ebc0eb12/app/react-native/src/server/middleware.js#L49
from storybook.
Related Issues (20)
- [Bug]: I'll guide you through troubleshooting the issue with installing Storybook. HOT 8
- [Bug]: After pressing the "Reset" button, the object editor adds new object properties - ones that would give compilation errors when trying to change them using TS code
- [Documentation]: Unable to render markdown files converted to mdx files in Docs
- [Bug]: The storybook 7.6.* version depends on the highly vulnerable ip package HOT 3
- [Bug]: Connection lost Lost connection to the Storybook server. Try refreshing the page. HOT 10
- [Bug]: Setting theme for DocsContainer dynamically breaks styles
- [Bug]: when I use JSX in CSF,the show code is not work well
- Add beforeAll hook to Storybook
- [Bug]: fast refresh is very slow when using `react-docgen-typescript` since `v8.1.0` HOT 2
- [Bug]: Show missing `vite.config.js` file in migration notification while the `vite.config.ts` exists HOT 1
- [Bug]: Unable to Mock Modules in Storybook HOT 3
- [Bug]: a11y-addon - APCA Contrast check - Can't pass custom evaluate function to rule
- [Bug]: Package exports are not properly interpreted in a mono-repo setup
- [Bug]: Unable to add storybook to existing nextjs project HOT 1
- [Bug]: previewMainTemplate Option Ignored, Default Template Used Instead
- [Bug]: RollupError: "createRequire" is not exported by "__vite-browser-external" HOT 1
- [Bug]: Small visual bug in Controls UI loading state HOT 1
- [Bug]: tocbot dependency causing `ERR_REQUIRE_ESM` error on `next dev` and `next build` HOT 6
- [Documentation]: <Source> format prop incorrectly states it takes in BuiltInParserName
- [Bug]: theme not working in decorators HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from storybook.