diff --git a/gulp/inject.js b/gulp/inject.js index 05bf008..8b589b8 100644 --- a/gulp/inject.js +++ b/gulp/inject.js @@ -70,4 +70,4 @@ var injectAlone = function (options) { .pipe($.inject(injectStyles, injectOptions)) .pipe(wiredep(_.extend({}, conf.wiredep))) .pipe(gulp.dest(path.join(conf.paths.tmp, '/serve'))); -}; \ No newline at end of file +}; diff --git a/gulp/watch.js b/gulp/watch.js index d140558..38c1134 100644 --- a/gulp/watch.js +++ b/gulp/watch.js @@ -34,6 +34,8 @@ gulp.task('watch', ['inject'], function () { }); gulp.watch(path.join(conf.paths.src, '/app/**/*.html'), function(event) { - browserSync.reload(event.path); + 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 }); }); diff --git a/src/index.html b/src/index.html index 1cf2f19..9a4c013 100644 --- a/src/index.html +++ b/src/index.html @@ -85,6 +85,29 @@ + - \ No newline at end of file +