@nrwl/storybook:build

Build storybook in production mode.

Options can be configured in project.json when defining the executor, or when invoking it. Read more about how to configure targets and executors here: https://nx.dev/configuration/projectjson#targets.

Options playground

This is an example of what the properties looks like and their values. Go ahead and try, test your configuration this is a live-edit window, you can interact directly and get intellisense on property's values.

Loading...

Options

config

Required

.storybook file configuration

docsMode

boolean
Default: false

Build a documentation-only site using addon-docs.

outputPath

string

The output path of the generated files.

projectBuildConfig

string

Workspace project where Storybook reads the Webpack config from.

quiet

boolean
Default: true

Suppress verbose build output.

styles

Array<oneOf [object , string]>

Global styles to be included in the build. This is for Angular projects only, as an option for the Storybook/Angular builder. It will be ignored in non-Angular projects.

stylePreprocessorOptions.includePaths

Array<string>

Options to pass to style preprocessors. The paths to include. Paths will be resolved to workspace root. This is for Angular projects only, as an option for the Storybook/Angular builder. It will be ignored in non-Angular projects.

uiFramework

RequiredHidden
string
Default: @storybook/angular

Storybook framework npm package.