Skip to content

How do I add a custom config dir flag to my Angular Storybook project? #27080

Answered by Marklb
stephh939 asked this question in Help
Discussion options

You must be logged in to vote

For an Angular project, you can specify a path in the builder config's configDir property, in angular.json(or Nx equivalent).

"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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by valentinpalkovic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants