-
Notifications
You must be signed in to change notification settings - Fork 12k
Live reload cannot be disabled in version 8 #14300
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
Comments
By default the application will be served with inline mode enabled. This means that a script will be inserted in your bundle to take care of live reloading. However at the moment we are already adding these scripts in `_addLiveReload` method. With this change we always disable this behaviour and only add it when needed via the `_addLiveReload` logic. Eventually we should try to remove the logic and rely on webpack-dev-server interals. Fixes #14300
By default the application will be served with inline mode enabled. This means that a script will be inserted in your bundle to take care of live reloading. However at the moment we are already adding these scripts in `_addLiveReload` method. With this change we always disable this behaviour and only add it when needed via the `_addLiveReload` logic. Eventually we should try to remove the logic and rely on webpack-dev-server interals. Fixes #14300
I can confirm this now works correctly in version |
The problem was related with Inotify Watches Limit on Linux. To solve the issue, I increased the watches limit to 512K. Run these commands.
After that, I restarted my IDE, and after that, the change detection started to work. Source : https://stackoverflow.com/questions/40366212/angular-cli-ng-serve-livereload-not-working |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command
Is this a regression?
Yes, the previous version in which this bug was not present was: 7.3.8
Description
Disabling live reload when serving an app using
ng serve --liveReload=false
fails to disable live reloading.🔬 Minimal Reproduction
ng new my-app
.ng serve --liveReload=false
.Observe the page automatically reloading.
🔥 Exception or Error
🌍 Your Environment
The text was updated successfully, but these errors were encountered: