Added check for null files
This commit is contained in:
parent
8a3e80c69c
commit
0928222c4e
5
index.js
5
index.js
|
@ -11,6 +11,11 @@ module.exports = function (options) {
|
||||||
// file is on object passed in by gulp
|
// file is on object passed in by gulp
|
||||||
// file.contents is always a Buffer
|
// file.contents is always a Buffer
|
||||||
|
|
||||||
|
|
||||||
|
if (file.isNull()) {
|
||||||
|
return cb(null, file);
|
||||||
|
}
|
||||||
|
|
||||||
opts.data = file.contents.toString();
|
opts.data = file.contents.toString();
|
||||||
|
|
||||||
opts.success = function (css) {
|
opts.success = function (css) {
|
||||||
|
|
Loading…
Reference in a new issue