Open
Description
Describe the bug
Looking for a way to silence [vite] ...
logs client side in dev and found logLevel
under Shared Options, but it doesn't work for client-side vite logs:
export default defineConfig({
logLevel: 'silent'
});
Results in:
[vite] connecting...
[vite] connected.
Reproduction
https://stackblitz.com/edit/vitejs-vite-abxahfbz?file=vite.config.json
Steps to reproduce
Add logLevel: 'silent'
to vite config & reload.
System Info
System:
OS: macOS 15.4.1
CPU: (16) arm64 Apple M4 Max
Memory: 19.31 GB / 64.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.11.0 - ~/.nvm/versions/node/v22.11.0/bin/node
npm: 10.9.0 - ~/.nvm/versions/node/v22.11.0/bin/npm
pnpm: 10.4.1 - ~/.nvm/versions/node/v22.11.0/bin/pnpm
Browsers:
Chrome: 136.0.7103.114
Safari: 18.4
Safari Technology Preview: 18.4
npmPackages:
@vitejs/plugin-vue: ^4.2.3 => 4.6.2
vite: ^4.3.9 => 4.5.14
Used Package Manager
npm
Logs
[vite] connecting...
[vite] connected.
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.