diff --git a/gulpfile.js b/gulpfile.js index e7d273fc..9eca9a04 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -72,7 +72,7 @@ gulp.task('build-dev', ['images', 'i18n', 'favicons', 'sass', 'fonts', 'select2' var jsFilter = filter("**/*.js"); var cssFilter = filter("**/*.css"); return gulp.src([SRC_DIR + 'index.html', TEMP_DIR + 'app.css']).pipe(assets).pipe(rev()).pipe(assets.restore()).pipe(useref()).pipe( - revReplace()).pipe(gulp.dest(BUILD_DIR)); + revReplace()).pipe(gulp.dest(BUILD_DIR)).pipe(connect.reload()); }); gulp.task('build', ['images', 'i18n', 'favicons', 'sass', 'fonts', 'select2', 'swagger-ui', 'template-cache', 'bower'], function() { @@ -101,6 +101,7 @@ gulp.task('serve', function() { connect.server({ root : BUILD_DIR, port : 8082, + livereload: true, middleware : function() { var rest = '^/rest/(.*)$ http://localhost:8083/rest/$1 [P]'; var next = '^/next(.*)$ http://localhost:8083/next$1 [P]'; diff --git a/package.json b/package.json index ec24705a..158ad8af 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "gulp-uglify": "0.3.1", "gulp-filter": "1.0.0", "gulp-bower": "0.0.6", - "gulp-connect": "2.0.6", + "gulp-connect": "2.2.0", "connect-modrewrite": "0.7.7", "gulp-sass": "0.7.2", "gulp-useref": "0.6.0",