Skip to content

changed dev server command from serve to dev#3125

Closed
ivansieder wants to merge 2 commits intovitejs:mainfrom
ivansieder:patch-3
Closed

changed dev server command from serve to dev#3125
ivansieder wants to merge 2 commits intovitejs:mainfrom
ivansieder:patch-3

Conversation

@ivansieder
Copy link
Contributor

Description

changed dev server command from serve to dev

What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

  • Read the Contributing Guidelines.
  • Read the Pull Request Guidelines and follow the Commit Convention.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Ideally, include relevant tests that fail without this PR but pass with it.

Co-authored-by: Nihal Gonsalves <nihal@nihalgonsalves.com>
@nihalgonsalves nihalgonsalves added the documentation Improvements or additions to documentation label Apr 24, 2021
@patak-cat
Copy link
Member

Thanks for the PR @ivansieder. I think this doesn't need to be changed though. There is the concept of a 'serve' command. When running vite without a command, it defaults to serve. They are also called commands in the API signatures.

@nihalgonsalves
Copy link
Member

@patak-js This is small issue, but I can see how it's confusing. The create-app templates alias serve to vite preview (and thus not the dev-server), so being a bit more explicit here would not hurt.

@ivansieder
Copy link
Contributor Author

All right, thanks for the feedback @patak-js. It was just unclear to me in that case. Closing this PR in that case.

@ivansieder ivansieder closed this Apr 24, 2021
@patak-cat
Copy link
Member

@nihalgonsalves I think that script should be renamed to 'preview', that is quite confusing. We could also add a line saying that vite defaults to vite serve if there is not mention of this.

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

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants