diff --git a/gulpfile.js b/gulpfile.js index 14ab63e..4ad4c22 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -14,7 +14,7 @@ gulp.task('default', ['server'], function() { gulp.watch('./src/**/*.js', ['browserify']); }); -gulp.task('server', ['static', 'markup', 'compass', 'browserify'], function() { +gulp.task('server', ['build'], function() { watch('./build/**/*', { name: 'Server' }) .pipe(connect.reload()); return connect.server({ @@ -23,6 +23,8 @@ gulp.task('server', ['static', 'markup', 'compass', 'browserify'], function() { }); }); +gulp.task('build', ['static', 'markup', 'compass', 'browserify']); + gulp.task('static', function() { return gulp.src('./src/**/*.!(html|scss|js)') .pipe(gulp.dest('./build'));