diff --git a/build/tasks/app-assets.js b/build/tasks/app-assets.js index 1ec7d9b6..dd08ad6a 100644 --- a/build/tasks/app-assets.js +++ b/build/tasks/app-assets.js @@ -2,5 +2,6 @@ var config = require('../config'); module.exports.task = function(gulp, plugins, paths) { gulp.src(paths.app.assets) - .pipe(gulp.dest(config.destDir + "/assets")); + .pipe(gulp.dest(config.destDir + "/assets")) + .pipe(plugins.connect.reload()); }; \ No newline at end of file diff --git a/build/tasks/app-pages.js b/build/tasks/app-pages.js index 7eced5e9..be0a9e0a 100644 --- a/build/tasks/app-pages.js +++ b/build/tasks/app-pages.js @@ -63,7 +63,10 @@ module.exports.task = function(gulp, plugins, paths) { })) // Output - .pipe(gulp.dest(config.destDir)); + .pipe(gulp.dest(config.destDir)) + + //Live-Reload + .pipe(plugins.connect.reload()); }; diff --git a/build/tasks/app-scripts.js b/build/tasks/app-scripts.js index 110de481..b5670759 100644 --- a/build/tasks/app-scripts.js +++ b/build/tasks/app-scripts.js @@ -3,5 +3,6 @@ var config = require('../config'); module.exports.task = function(gulp, plugins, paths) { gulp.src(paths.app.scripts) .pipe(plugins.concat('app.js')) - .pipe(gulp.dest(config.destDir + '/js')); + .pipe(gulp.dest(config.destDir + '/js')) + .pipe(plugins.connect.reload()); }; \ No newline at end of file diff --git a/build/tasks/app-styles.js b/build/tasks/app-styles.js index 47537939..980f580b 100644 --- a/build/tasks/app-styles.js +++ b/build/tasks/app-styles.js @@ -16,5 +16,6 @@ module.exports.task = function(gulp, plugins, paths) { .on('error', plugins.sass.logError) ) .pipe(plugins.autoprefixer()) - .pipe(gulp.dest(config.destDir + '/css')); + .pipe(gulp.dest(config.destDir + '/css')) + .pipe(plugins.connect.reload()).on( 'error', plugins.sass.logError ); }; \ No newline at end of file diff --git a/build/tasks/app-themes.js b/build/tasks/app-themes.js index c69707ea..b43d5de6 100644 --- a/build/tasks/app-themes.js +++ b/build/tasks/app-themes.js @@ -27,7 +27,8 @@ module.exports.task = function(gulp, plugins, paths) { .on('error', plugins.sass.logError) ) .pipe(plugins.autoprefixer()) - .pipe(gulp.dest(config.destDir + '/css')); + .pipe(gulp.dest(config.destDir + '/css')) + .pipe(plugins.connect.reload()); }); diff --git a/build/tasks/vendor-assets.js b/build/tasks/vendor-assets.js index cc511811..1bbdf488 100644 --- a/build/tasks/vendor-assets.js +++ b/build/tasks/vendor-assets.js @@ -2,8 +2,10 @@ var config = require('../config'); module.exports.task = function(gulp, plugins, paths) { gulp.src(paths.vendor.assets) - .pipe(gulp.dest(config.destDir + "/assets")); + .pipe(gulp.dest(config.destDir + "/assets")) + .pipe(plugins.connect.reload()); gulp.src(paths.vendor.fonts) - .pipe(gulp.dest(config.destDir + "/fonts")); + .pipe(gulp.dest(config.destDir + "/fonts")) + .pipe(plugins.connect.reload()); }; \ No newline at end of file diff --git a/build/tasks/vendor-scripts.js b/build/tasks/vendor-scripts.js index b90d0e86..e86845aa 100644 --- a/build/tasks/vendor-scripts.js +++ b/build/tasks/vendor-scripts.js @@ -3,5 +3,6 @@ var config = require('../config'); module.exports.task = function(gulp, plugins, paths) { gulp.src(paths.vendor.scripts) .pipe(plugins.concat('vendor.js')) - .pipe(gulp.dest(config.destDir + "/js")); + .pipe(gulp.dest(config.destDir + "/js")) + .pipe(plugins.connect.reload()); }; \ No newline at end of file diff --git a/build/tasks/vendor-styles.js b/build/tasks/vendor-styles.js index a30d7754..af14a097 100644 --- a/build/tasks/vendor-styles.js +++ b/build/tasks/vendor-styles.js @@ -4,5 +4,6 @@ var path = require('path'); module.exports.task = function(gulp, plugins, paths) { gulp.src(paths.vendor.styles) .pipe(plugins.concat('vendor.css')) - .pipe(gulp.dest(config.destDir + "/css")); + .pipe(gulp.dest(config.destDir + "/css")) + .pipe(plugins.connect.reload()).on( 'error', plugins.sass.logError ); }; \ No newline at end of file