{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic-cli/issues/275","repository_url":"https://api.github.com/repos/driftyco/ionic-cli","labels_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/275/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/275/comments","events_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/275/events","html_url":"https://github.com/driftyco/ionic-cli/issues/275","id":59368695,"number":275,"title":"Livereload triggers a page load before all watch tasks have ended (pebkac?)","user":{"login":"mrthehud","id":140144,"avatar_url":"https://avatars.githubusercontent.com/u/140144?v=3","gravatar_id":"","url":"https://api.github.com/users/mrthehud","html_url":"https://github.com/mrthehud","followers_url":"https://api.github.com/users/mrthehud/followers","following_url":"https://api.github.com/users/mrthehud/following{/other_user}","gists_url":"https://api.github.com/users/mrthehud/gists{/gist_id}","starred_url":"https://api.github.com/users/mrthehud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrthehud/subscriptions","organizations_url":"https://api.github.com/users/mrthehud/orgs","repos_url":"https://api.github.com/users/mrthehud/repos","events_url":"https://api.github.com/users/mrthehud/events{/privacy}","received_events_url":"https://api.github.com/users/mrthehud/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-03-01T00:23:23Z","updated_at":"2016-03-02T17:28:42Z","closed_at":"2016-03-02T17:12:59Z","body":"The Ionic default is to run the \"watch\" task on server startup, but it seems that the page is reloaded before all of my tasks have been completed. E.g, I change some sass, livereload runs, but the browser loads the old css. If I hit ctrl+r, I get the updated sass.\r\n\r\nCould this be an issue with ionic-cli / livereload, or am I the issue?\r\n\r\n```javascript\r\n// gulpfile.js\r\n// ...\r\ngulp.task('watch', function(done) {\r\n    gulp.watch(paths.sass, ['sass']); // Sass from src to www\r\n    gulp.watch(paths.js, ['js']); // Concatenate all js files from src to www\r\n    gulp.watch(paths.html, ['html']); // Copy templates from src to www\r\n});\r\n\r\n// ionic.project\r\n{\r\n  //...\r\n  \"gulpStartupTasks\": [ \"sass\", \"js\", \"html\", \"watch\" ],\r\n  \"watchPatterns\": [\r\n    \"www/**/*\",\r\n    \"src/**/*\",\r\n    \"!www/lib/**/*\"\r\n  ]\r\n}\r\n```\r\n\r\nThanks Guys, great work."},"comment":{"url":"https://api.github.com/repos/driftyco/ionic-cli/issues/comments/191339076","html_url":"https://github.com/driftyco/ionic-cli/issues/275#issuecomment-191339076","issue_url":"https://api.github.com/repos/driftyco/ionic-cli/issues/275","id":191339076,"user":{"login":"toru-sean","id":8126322,"avatar_url":"https://avatars.githubusercontent.com/u/8126322?v=3","gravatar_id":"","url":"https://api.github.com/users/toru-sean","html_url":"https://github.com/toru-sean","followers_url":"https://api.github.com/users/toru-sean/followers","following_url":"https://api.github.com/users/toru-sean/following{/other_user}","gists_url":"https://api.github.com/users/toru-sean/gists{/gist_id}","starred_url":"https://api.github.com/users/toru-sean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toru-sean/subscriptions","organizations_url":"https://api.github.com/users/toru-sean/orgs","repos_url":"https://api.github.com/users/toru-sean/repos","events_url":"https://api.github.com/users/toru-sean/events{/privacy}","received_events_url":"https://api.github.com/users/toru-sean/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T17:28:41Z","updated_at":"2016-03-02T17:28:41Z","body":"Although just re-read original post and he is watching src folder, so that's a different think i guess"}}