-
Notifications
You must be signed in to change notification settings - Fork 509
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
fix(ssr): fix --no-docs (rename to --skip-docs) #11973
Conversation
And ssr spas in `yarn start`. This should be changed to be ad hoc ssred in the future.
Bundle StatsHey there, this message comes from a github action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger No assets were bigger Smaller No assets were smaller Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
.option("-s, --skip-docs", "Do not build docs (only spas, blog...)", { | ||
default: false, | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fiji-flo The solution would have been:
.option("--docs", "Build docs", {
default: true,
})
Summary
Fix --no-docs (rename to --skip-docs)
And ssr spas in
yarn start
.This should be changed to be ad hoc ssred in the future.
Problem
--no-docs had no effect and still rendered everything.
Solution
It seems like caporal magically (probably documented somewhere) strips the
no
from--no-docs
so the option is calleddocs
instead of the expectednoDocs
. Therefore, this was broken. Now we use--skip-docs
and it works as expected.How did you test this change?
Locally
yarn start
and visit a http://localhost:5042/en-US/foo