-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes to vite.config.js build --watch mode is not reflected as mentioned in the docs #11916
Comments
|
It seems |
It might work, but when the config file is changed, we need to start a new rollup watcher with the new rollup config which might be changed. So we need to restart the |
Since fixing this is a bit hard without changing the function return signature, let's fix the documentation for now. |
So if i understand this correctly: |
Just tested we still have this issue. |
Describe the bug
https://vitejs.dev/guide/build.html#rebuild-on-files-changes
The above statement is not the case, currently it only works on serve mode and not build mode.
Reproduction
https://stackblitz.com/edit/vitejs-vite-xqrbrg?file=vite.config.js&terminal=dev
Steps to reproduce
Make any changes to let count in vite.config.js, it doesn't work, but running in serve mode via
vite
command works fine.System Info
System: OS: Linux 5.0 undefined CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 0 Bytes / 0 Bytes Shell: 1.0 - /bin/jsh Binaries: Node: 16.14.2 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 7.17.0 - /usr/local/bin/npm npmPackages: vite: ^4.1.1 => 4.1.1
The text was updated successfully, but these errors were encountered: