docs: Deploying a Static Site npm command instructions inconsistent with template package.json #4609
Closed
7 tasks done
Labels
documentation
Improvements or additions to documentation
Describe the bug
Going through the documentation to Deploy a Static Site the npm commands listed to see a preview of the built project are inconsistent with what the template
package.json
that's placed in the root directory of the project.I went through the the templates for vue, react, preact, and vanilla and their respective Typescript counterparts. The templates all have the scripts command
serve
instead of the documentedpreview
command.Potential options:
package.json
file commandsserve
to runvite preview
.serve
andpreview
to runvite preview
. Either issuing a deprecation warning when runningnpm run serve
or making note of the breaking change in the next 2.x release.Original discussion from Discord
Reproduction
Creating a new project using the documentation:
System Info
Used Package Manager
npm
Logs
Validations
The text was updated successfully, but these errors were encountered: