Update watch.js

pull/107/head
Viktor Verebelyi 2016-07-04 10:18:49 +01:00 committed by GitHub
parent 141fc393d9
commit b56eaff5bd
1 changed files with 3 additions and 1 deletions

View File

@ -34,6 +34,8 @@ gulp.task('watch', ['inject'], function () {
});
gulp.watch(path.join(conf.paths.src, '/app/**/*.html'), function(event) {
browserSync.notify("reload:ng:views");//Push notification to clien with browserSync
var projectPath = path.join(process.cwd(),conf.paths.src);
projectPath = event.path.replace(projectPath, '').replace(/\\/g, '/');
browserSync.notify({reload: projectPath});//Push notification to clien with browserSync
});
});