Skip to content
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

build-storybook ignores -o output option #13700

Closed
Jakobud opened this issue Jan 21, 2021 · 2 comments
Closed

build-storybook ignores -o output option #13700

Jakobud opened this issue Jan 21, 2021 · 2 comments

Comments

@Jakobud
Copy link

Jakobud commented Jan 21, 2021

Describe the bug
According to the documentation (https://storybook.js.org/docs/html/workflows/publish-storybook) I should be able to specify the output directory when publishing storybook to static files:

$ npm run build-storybook -o ./path/to/output

But when I do this, it ignores the -o and outputs to ./storybook-static directory every time.

Expected behavior
It outputs static files to the specified directory.

System
Please paste the results of npx sb@next info here.

    OS: Windows 10 10.0.18363
    CPU: (16) x64 AMD Ryzen 7 3700X 8-Core Processor
  Binaries:
    Node: 14.15.4 - C:\Program Files\nodejs\node.EXE
    npm: 6.14.10 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.18362.449.0)
  npmPackages:
    @storybook/addon-actions: ^6.1.14 => 6.1.14
    @storybook/addon-essentials: ^6.1.14 => 6.1.14
    @storybook/addon-links: ^6.1.14 => 6.1.14
    @storybook/html: ^6.1.14 => 6.1.14
@jeffreymoelands
Copy link

#10570

@gaetanmaisse
Copy link
Member

Closing as a duplicate of #10570

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants