Comparing version 0.5.0 to 0.5.1
@@ -100,9 +100,8 @@ var kpc = require('node-kpc'); | ||
result.files.forEach(function(file) { | ||
var code = file.genCode || file.srcCode; | ||
var code = file.genCode || file.srcCode || null; | ||
var gFile = new gUtil.File({ | ||
path: path.join(options.path, file.filename), | ||
base: options.path, | ||
contents: new Buffer(code) | ||
contents: code ? new Buffer(code) : null | ||
}); | ||
@@ -120,3 +119,3 @@ | ||
base: options.path, | ||
contents: new Buffer(depFileCnt) | ||
contents: depFileCnt ? new Buffer(depFileCnt) : null | ||
}); | ||
@@ -131,2 +130,1 @@ | ||
} | ||
{ | ||
"name": "gulp-kpc", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "kpc plugin for gulp", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
6519