## Current Behavior We currently have a `serveTargetName` that defaults to `serve` in the `@nx/vite/plugin`. This infers a `vite serve` command for the `serve` task to vite projects. While not incorrect, it could be abrasive for users coming from the `vite` ecosystem to Nx. The command to start the Vite Dev Server is `vite`, so we should infer this. `create-vite` also creates a package.json script with `"dev": "vite"` meaning users are likely running `npm run dev`. This creates two points of differences for vite ecosystem users. ## Expected Behavior Deprecate `serveTargetName` in favour of `devTargetName` to more closely align with lanugage from the Vite ecosystem. Infer the command `vite` instead of `vite serve` for the `serve` and `dev` tasks.
{{links}}
Nx: Smart Monorepos · Fast CI
Nx is a build system, optimized for monorepos, with plugins for popular frameworks and tools and advanced CI capabilities including caching and distribution.
This package is a Vue plugin for Nx.
{{content}}