-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] use different projects for configuring storybook #2560
Comments
I have a similar configuration over here. I configured the Storybook to run inside of the UI library when I run the command |
This is an issue with @storybook/angular not nx. https://github.com/storybookjs/storybook/blob/next/app/angular/src/server/angular-cli_config.ts#L73 My hack (add to anuglar.json)
|
@rhutchison could you please describe where you inserted your hack? Thank you |
Looks like there is a related issue open in the storybook repo: storybookjs/storybook#10302 |
Just to follow up, any project named "storybook" will take precedence over the default application. Add the above under your projects and it will use the |
For my use case creating such a dummy project called storybook would suffice, thus I close this issue. |
Starting at version 6.1.0 of storybook was introduced an env variable named In the main.js config of any .storybook folder you can set this env variable with the
Here is the link to the pull request that introduced this feature: |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Prerequisites
Please answer the following questions for yourself before submitting an issue.
YOU MAY DELETE THE PREREQUISITES SECTION.
Expected Behavior
In my monorepo setup I have multiple angular projects all using the same UI library but with different theming that is realized by importing scss partials.
When running storybook for the UI library I would like an easy was to switch between themes. Not necessarily during runtime some config option would suffice.
Right now I get the following output in the console:
info => Using angular project 'some-project-name' for configuring Storybook.
So I guess it would be enough to have an option for saying which project storybook should use.
Or maybe there is already a way to do this and I couldn't find it?
The text was updated successfully, but these errors were encountered: