From baae82c3e1d6c9189fd1eb9c50b44e5bc409f525 Mon Sep 17 00:00:00 2001 From: xzyfer Date: Mon, 5 Oct 2015 13:59:19 +1100 Subject: [PATCH] An empty Sass file should produce an empty CSS file Currently if the input file is blank we bail out early, returning the input file object. This causes gulp to simply copy the input Sass file. We instead need to rewrite the file extension to .css. Fixes #352 --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 97f907d2..47c760e2 100644 --- a/index.js +++ b/index.js @@ -29,6 +29,7 @@ var gulpSass = function gulpSass(options, sync) { return cb(); } if (!file.contents.length) { + file.path = gutil.replaceExtension(file.path, '.css'); return cb(null, file); }