You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe
Since the --static-dir CLI flag was superseded in 6.4 by the staticDirs option in .storybook/main.js, there is no simple way to determine which static directories were used, making it harder to do automatic change detection for e.g. Chromatic's TurboSnap. An additional complication is that the original source code (including the Storybook config dir) might not be available, but only the statically built Storybook.
Describe the solution you'd like
I would like to add a new --report flag to the build-storybook CLI which writes a storybook-report.json file to the output directory (e.g. storybook-static). This file would contain a JSON dump of all contextual values processed by the CLI, including things like configuration values, file sizes and whatnot. This would be similar to the --report flag in the Chromatic CLI.
Describe alternatives you've considered
There’s a static analysis called ConfigFile in @storybook/csf-tools that could pull out the staticDirs value. We could pipe that to a file instead.
Are you able to assist to bring the feature to reality?
Of course.
The text was updated successfully, but these errors were encountered:
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks!
Is your feature request related to a problem? Please describe
Since the
--static-dir
CLI flag was superseded in 6.4 by thestaticDirs
option in.storybook/main.js
, there is no simple way to determine which static directories were used, making it harder to do automatic change detection for e.g. Chromatic's TurboSnap. An additional complication is that the original source code (including the Storybook config dir) might not be available, but only the statically built Storybook.Describe the solution you'd like
I would like to add a new
--report
flag to thebuild-storybook
CLI which writes astorybook-report.json
file to the output directory (e.g.storybook-static
). This file would contain a JSON dump of all contextual values processed by the CLI, including things like configuration values, file sizes and whatnot. This would be similar to the--report
flag in the Chromatic CLI.Describe alternatives you've considered
There’s a static analysis called
ConfigFile
in@storybook/csf-tools
that could pull out thestaticDirs
value. We could pipe that to a file instead.Are you able to assist to bring the feature to reality?
Of course.
The text was updated successfully, but these errors were encountered: