Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upBetter "help" text for `nuxt generate --no-build` #6031
Comments
I guess the main issue here is that you dont need to built once but generate once with build |
That makes a bit of sense, I guess if that is how it was designed the help text could be updated a bit to clarify ;) |
You are right on this @FreekVR We will improve it in upcoming releases :) |
@FreekVR If you have an idea for a better help text, please send in a PR! We would appreciate it |
Thanks for your contribution to Nuxt.js!
Issues that are labeled as |
Version
v2.8.1
Reproduction link
https://codesandbox.io/s/codesandbox-nuxt-y4nlw
Steps to reproduce
Build an app with some static routes, like "pages/about.vue". Then set-up a build process where you run
nuxt build
andnuxt generate --no-build
as separate commands. (In the sandbox, open a new terminal thenyarn run build-then-generate
)What is expected ?
A page called "about.html" is generated.
What is actually happening?
Only pages registered in config.generate.routes are picked up. about.html is not generated at all.
Additional comments?
Running
nuxt generate
without the "--no-build" param is working fine.