From 07bc5d3fc9490961c958710daf110bf49c4fe4fe Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sun, 17 May 2015 00:41:44 +0200 Subject: Fixed gulpfile bug where // in a URL was turned into http:// automatically by the clean-css minifier --- gulpfile.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 6817c03..b22b542 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -92,7 +92,7 @@ gulp.task('3rd-party-styles', function() { return gulp.src(fileList) .pipe(changed(dst, {extension: '.css', destination: function(file){ if (isBootswatchFile(file)) { - return 'bootswatch.css'; + return bootswatch_dst; } else { return file; } @@ -111,10 +111,10 @@ gulp.task('3rd-party-styles', function() { // http://stackoverflow.com/questions/21719833/gulp-how-to-add-src-files-in-the-middle-of-a-pipe // https://github.com/gulpjs/gulp/blob/master/docs/recipes/using-multiple-sources-in-one-task.md - return merge(stream, gulp.src(['./build/assets/css/font-awesome.css', './build/assets/css/main.css'])) - .pipe(concat('bootswatch.css')) + return merge(stream, gulp.src(['./build/assets/css/font-awesome.css'])) + .pipe(concat(bootswatch_dst)) }))) - .pipe(minifycss()) + .pipe(minifycss({processImport: false})) .pipe(gulp.dest(dst)); }); -- cgit v1.2.3