-
SummaryI need to tell my project where my main.js file is located at but I can't see to figure out how to add a custom config dir flag to Storybook. My project structure is in the additional information section along with where the I saw in this discussion #24652 that "The -c flag is for a custom config directory where it can find your There are multiple Nx console projects within my Angular "dbaasui" project and the specific project I am trying to add stories to is called shared-ui-components-v3. If there is any other needed information please let me know and I'll provide it. Additional informationProject structure:
Create a reproductionNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
For an Angular project, you can specify a path in the builder config's "storybook": {
"builder": "@storybook/angular:start-storybook",
"options": {
"configDir": ".storybook",
"browserTarget": "shared-ui-components-v3:build",
"port": 6006,
"compodoc": true,
"compodocArgs": [ "-e", "json", "-d", "." ]
}
},
"build-storybook": {
"builder": "@storybook/angular:build-storybook",
"options": {
"configDir": ".storybook",
"browserTarget": "shared-ui-components-v3:build",
"outputDir": "storybook-static",
"compodoc": true,
"compodocArgs": [ "-e", "json", "-d", "." ]
}
}, I think the property is already in the config added by the Storybook init script. If you are trying to replace only the |
Beta Was this translation helpful? Give feedback.
For an Angular project, you can specify a path in the builder config's
configDir
property, inangular.json
(or Nx equivalent).I think the property is already in the…