generator-ionic
generator-ionic copied to clipboard
Racecondition: grunt serve with auto rebuild
Hi,
if I serve an app using livereload there seems to be a racecondition when to reload the page.
I basically just use a starter project and serve it in chrome
grunt serve --consolelogs
If i now change something in the app folder, like the title in the index.html page everything is rebuild
>> File "app\index.html" changed.
Running "newer:copy:app" (newer) task
Running "copy:app" (copy) task
But the browser reloads too early, when basically not all files have been moved over to the www folder.
I then see errors like this in the console
0 282928 log LiveReload protocol error (invalid command 'reload', only valid commands are: hello)) after receiving data: "{"command":"reload","path":
"myapp\\www\\bower_components\\ionic\\js\\angular\\directive\\modalView.js","liveCss":true,"liveJs":true,"liveImg":true}"..
Not sure if this is a specific issue with my setup - or just one in general an issue with ionic detecting the change not as a "set"?
I couldn't find an option for specifying the timeout or delay in the ionic.project file.
Any suggestions?
I'm using
I have same issue. I even reinstalled whole stack (node, npm, ionic, cordova etc.). Clean, newest packages and LiveReload just choking. Thanks for any advice.
npm 2.14.4 node v4.1.1 Windows 10