From 27cc623c53f85933612e5063cfe05daeb574c479 Mon Sep 17 00:00:00 2001 From: Austin Pray Date: Mon, 23 Feb 2015 16:37:42 -0600 Subject: [PATCH 1/2] Only save a wiredepped file if Sha1 differs fixes https://github.com/roots/roots/issues/1340 --- gulpfile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 55aa50e..fb3c043 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -234,7 +234,9 @@ gulp.task('wiredep', function() { var wiredep = require('wiredep').stream; return gulp.src(project.css) .pipe(wiredep()) - .pipe($.changed(path.source + 'styles')) + .pipe($.changed(path.source + 'styles', { + hasChanged: $.changed.compareSha1Digest + })) .pipe(gulp.dest(path.source + 'styles')); }); From 6c988aa533056e18290edc0c766f87afadf9aea7 Mon Sep 17 00:00:00 2001 From: Austin Pray Date: Mon, 23 Feb 2015 18:38:11 -0600 Subject: [PATCH 2/2] Readds wiredep as dep to styles task Wiredep runs automatically as a part of the `gulp` task now --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index fb3c043..04e3023 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -137,7 +137,7 @@ var writeToManifest = function(directory) { // ### Styles // `gulp styles` - Compiles, combines, and optimizes Bower CSS and project CSS. -gulp.task('styles', function() { +gulp.task('styles', ['wiredep'], function() { var merged = merge(); manifest.forEachDependency('css', function(dep) { merged.add(gulp.src(dep.globs, {base: 'styles'})