Skip to content

Commit

Permalink
An empty Sass file should produce an empty CSS file
Browse files Browse the repository at this point in the history
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 dlmanning#352
  • Loading branch information
xzyfer committed Oct 5, 2015
1 parent 04f9a93 commit baae82c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit baae82c

Please sign in to comment.