diff --git a/gulpfile.js b/gulpfile.js index 849b64d..38e1cb4 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -46,7 +46,7 @@ var cssTasks = function(filename) { .pipe($.livereload)(); }; -gulp.task('styles', ['wiredep'], function() { +gulp.task('styles', function() { var merged = merge(); manifest.forEachDependency('css', function (dep) { merged.add(gulp.src(dep.globs) @@ -132,8 +132,9 @@ gulp.task('build', ['styles', 'scripts', 'fonts', 'images'], function() { gulp.task('wiredep', function() { var wiredep = require('wiredep').stream; - gulp.src(project.css) + return gulp.src(project.css) .pipe(wiredep()) + .pipe($.changed(path.source + 'styles')) .pipe(gulp.dest(path.source + 'styles')); }); diff --git a/package.json b/package.json index 10637f6..327b37c 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "asset-builder": "~0.3.0", "del": "^1.1.1", "gulp": "^3.8.10", + "gulp-changed": "^1.1.0", "gulp-concat": "^2.3.4", "gulp-flatten": "0.0.4", "gulp-if": "^1.2.5",