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

Angular: Enable prod mode when Storybook is built #23404

Merged
merged 1 commit into from Jul 11, 2023

Conversation

valentinpalkovic
Copy link
Contributor

@valentinpalkovic valentinpalkovic commented Jul 11, 2023

Closes #23272

What I did

Use Angular prod mode when Storybook is built

How to test

  • not necessary. I did it already.

Checklist

  • Make sure your changes are tested (stories and/or unit, integration, or end-to-end tests)
  • Make sure to add/update documentation regarding your changes
  • If you are deprecating/removing a feature, make sure to update
    MIGRATION.MD

Maintainers

  • If this PR should be tested against many or all sandboxes,
    make sure to add the ci:merged or ci:daily GH label to it.
  • Make sure this PR contains one of the labels below.

["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]

@valentinpalkovic valentinpalkovic self-assigned this Jul 11, 2023
@valentinpalkovic valentinpalkovic added bug ci:daily Run the CI jobs that normally run in the daily job. labels Jul 11, 2023
@valentinpalkovic valentinpalkovic changed the title Use Angular prod mode Angular: Enable prod mode when Storybook is built Jul 11, 2023
@valentinpalkovic valentinpalkovic merged commit a46cbb1 into next Jul 11, 2023
105 of 110 checks passed
@valentinpalkovic valentinpalkovic deleted the valentin/use-angular-prod-mode branch July 11, 2023 13:27
@valentinpalkovic valentinpalkovic added the patch:yes Bugfix & documentation PR that need to be picked to main branch label Jul 11, 2023
@github-actions github-actions bot mentioned this pull request Jul 11, 2023
9 tasks
storybook-bot pushed a commit that referenced this pull request Jul 11, 2023
…mode

Angular: Enable prod mode when Storybook is built
(cherry picked from commit a46cbb1)
@github-actions github-actions bot mentioned this pull request Jul 11, 2023
27 tasks
storybook-bot pushed a commit that referenced this pull request Jul 11, 2023
…mode

Angular: Enable prod mode when Storybook is built
(cherry picked from commit a46cbb1)
storybook-bot pushed a commit that referenced this pull request Jul 11, 2023
…mode

Angular: Enable prod mode when Storybook is built
(cherry picked from commit a46cbb1)
storybook-bot pushed a commit that referenced this pull request Jul 11, 2023
…mode

Angular: Enable prod mode when Storybook is built
(cherry picked from commit a46cbb1)
storybook-bot pushed a commit that referenced this pull request Jul 11, 2023
…mode

Angular: Enable prod mode when Storybook is built
(cherry picked from commit a46cbb1)
storybook-bot pushed a commit that referenced this pull request Jul 11, 2023
…mode

Angular: Enable prod mode when Storybook is built
(cherry picked from commit a46cbb1)
storybook-bot pushed a commit that referenced this pull request Jul 11, 2023
…mode

Angular: Enable prod mode when Storybook is built
(cherry picked from commit a46cbb1)
storybook-bot pushed a commit that referenced this pull request Jul 11, 2023
…mode

Angular: Enable prod mode when Storybook is built
(cherry picked from commit a46cbb1)
@github-actions github-actions bot mentioned this pull request Jul 11, 2023
10 tasks
storybook-bot pushed a commit that referenced this pull request Jul 11, 2023
…mode

Angular: Enable prod mode when Storybook is built
(cherry picked from commit a46cbb1)
storybook-bot pushed a commit that referenced this pull request Jul 11, 2023
…mode

Angular: Enable prod mode when Storybook is built
(cherry picked from commit a46cbb1)
storybook-bot pushed a commit that referenced this pull request Jul 12, 2023
…mode

Angular: Enable prod mode when Storybook is built
(cherry picked from commit a46cbb1)
storybook-bot pushed a commit that referenced this pull request Jul 12, 2023
…mode

Angular: Enable prod mode when Storybook is built
(cherry picked from commit a46cbb1)
storybook-bot pushed a commit that referenced this pull request Jul 12, 2023
…mode

Angular: Enable prod mode when Storybook is built
(cherry picked from commit a46cbb1)
@github-actions github-actions bot added the patch:done Patch/release PRs already cherry-picked to main/release branch label Jul 12, 2023
@Tallyb
Copy link

Tallyb commented Jul 17, 2023

@valentinpalkovic - does that mean it only builds in prod mode? can this be configurable? Major problem for us.

@warri93
Copy link

warri93 commented Jul 24, 2023

Not sure if it is related but could it be that this breaks my storybook build and giving me a ɵɵinvalidFactoryDep error?

@valentinpalkovic
Copy link
Contributor Author

As soon as #23489 is released, you will be able to activate/deactivate prod mode manually

@warri93
Copy link

warri93 commented Jul 24, 2023

Thank you for the quick response!

@xaolas
Copy link

xaolas commented Jul 24, 2023

Not sure if it is related but could it be that this breaks my storybook build and giving me a ɵɵinvalidFactoryDep error?

I have the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ci:daily Run the CI jobs that normally run in the daily job. patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Angular always devMode enabled when using build-storybook
5 participants