Skip to content

Commit

Permalink
Merge pull request #86 from hugobessaa/patch-1
Browse files Browse the repository at this point in the history
Enforce other tasks to ran after init
  • Loading branch information
shakyShane committed Dec 22, 2014
2 parents ea98e7f + 4efe83d commit 84d8ed6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tasks/browser-sync.js
Expand Up @@ -46,7 +46,11 @@ module.exports = function (grunt) {

//noinspection JSUnresolvedVariable
if (options.watchTask || options.watchtask || options.background) {
done(); // Allow Watch task to run after

// Wait until browserSync fully initializes
browserSync.emitter.on('service:running', function() {
done(); // Allow Watch task to run after
});
}
});
};

0 comments on commit 84d8ed6

Please sign in to comment.