diff --git a/docs/content/1.getting-started/3.commands.md b/docs/content/1.getting-started/3.commands.md index c6d4056e..34a2717b 100644 --- a/docs/content/1.getting-started/3.commands.md +++ b/docs/content/1.getting-started/3.commands.md @@ -35,7 +35,7 @@ Development command have some options you can pass to alter storybook behaviors. --smoke-test Exit after successful start --ci CI mode (skip interactive prompts, don't open browser) --quiet Suppress verbose build output ---tsconfig Specify tha path to tsconfig.json file. +--tsconfig Specify the path to tsconfig.json file. ``` ## Export @@ -64,6 +64,8 @@ Build command have some options you can pass to alter storybook behaviors. -o, --output-dir [dir-name] Directory where to store built files --tsconfig Specify tha path to tsconfig.json file. --quiet +--webpack-stats-json Must be set to the value of --output-dir, for +use with Chromatic's TurboSnap feature ``` ## Eject diff --git a/src/cli.ts b/src/cli.ts index b3f1952e..7cb3401b 100755 --- a/src/cli.ts +++ b/src/cli.ts @@ -25,7 +25,8 @@ function _run () { '-h': '--host', '--force': Boolean, '--tsconfig': String, - '--no-manager-cache': Boolean + '--no-manager-cache': Boolean, + '--webpack-stats-json': String }) const { _, ...flags } = args diff --git a/src/types.d.ts b/src/types.d.ts index 98c13b40..956b7cdf 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -20,4 +20,5 @@ export interface StorybookOptions { port?: Number; host?: String; force?: boolean; + webpackStatsJson?: string; }