slushjs / slush-angular

A slush generator for AngularJS using the Google Angular App Structure Recommendations
129 stars 32 forks source link

Page keeps refreshing after saving a code change #56

Open stevehealy opened 8 years ago

stevehealy commented 8 years ago

For example, say I change one character of text in index.html - and save the file - the page is constantly refreshed in the browser window (sometimes it stops eventually, sometimes it doesn't).

Sample gulp serve output:

[14:21:21] Starting 'index'...
[14:21:21] gulp-inject 8 files into index.html.
[14:21:21] gulp-inject 6 files into index.html.
[14:21:21] index.html was reloaded.
[14:21:21] Finished 'index' after 46 ms
[14:21:22] Starting 'index'...
[14:21:22] gulp-inject 8 files into index.html.
[14:21:22] gulp-inject 6 files into index.html.
[14:21:22] index.html was reloaded.
[14:21:22] Finished 'index' after 43 ms
[14:21:22] Starting 'index'...
[14:21:22] gulp-inject 8 files into index.html.
[14:21:22] gulp-inject 6 files into index.html.
[14:21:22] index.html was reloaded.
[14:21:22] Finished 'index' after 49 ms
[14:21:23] Starting 'index'...
[14:21:23] gulp-inject 8 files into index.html.
[14:21:23] gulp-inject 6 files into index.html.
[14:21:23] index.html was reloaded.
[14:21:23] Finished 'index' after 66 ms
[14:21:23] Starting 'index'...
[14:21:24] gulp-inject 8 files into index.html.
[14:21:24] gulp-inject 6 files into index.html.
[14:21:24] index.html was reloaded.
[14:21:24] Finished 'index' after 45 ms
[14:21:24] Starting 'index'...
[14:21:24] gulp-inject 8 files into index.html.
[14:21:24] gulp-inject 6 files into index.html.
[14:21:24] index.html was reloaded.
[14:21:24] Finished 'index' after 51 ms
[14:21:25] Starting 'index'...
[14:21:25] gulp-inject 8 files into index.html.
[14:21:25] gulp-inject 6 files into index.html.
[14:21:25] index.html was reloaded.
[14:21:25] Finished 'index' after 38 ms
[14:21:25] Starting 'index'...
[14:21:25] gulp-inject 8 files into index.html.
[14:21:25] gulp-inject 6 files into index.html.
[14:21:25] index.html was reloaded.
[14:21:25] Finished 'index' after 44 ms
[14:21:26] Starting 'index'...
[14:21:26] gulp-inject 8 files into index.html.
[14:21:26] gulp-inject 6 files into index.html.
[14:21:26] index.html was reloaded.
[14:21:26] Finished 'index' after 35 ms
[14:21:27] Starting 'index'...
[14:21:27] gulp-inject 8 files into index.html.
[14:21:27] gulp-inject 6 files into index.html.
[14:21:27] index.html was reloaded.
[14:21:27] Finished 'index' after 31 ms
[14:21:27] Starting 'index'...
[14:21:27] gulp-inject 8 files into index.html.
[14:21:27] gulp-inject 6 files into index.html.
[14:21:27] index.html was reloaded.
[14:21:27] Finished 'index' after 50 ms
[14:21:28] Starting 'index'...
[14:21:28] gulp-inject 8 files into index.html.
[14:21:28] gulp-inject 6 files into index.html.
[14:21:28] index.html was reloaded.
[14:21:28] Finished 'index' after 32 ms

As can be seen from the timestamps above, the page is refreshed/injected multiple times per second.

davidmu commented 6 years ago

That's what live-reload does. Most front-enders find it helpful.