diff --git a/lib/sprite.js b/lib/sprite.js index 1b2369b..2be8397 100644 --- a/lib/sprite.js +++ b/lib/sprite.js @@ -100,13 +100,13 @@ module.exports = function (options) { return callback(null) } - var index = opt.slicePath.lastIndexOf('/') + // var index = opt.slicePath.lastIndexOf('/') - if (index === -1) { - opt.spriteOut = 'sprite/' - } else { - opt.spriteOut = opt.slicePath.substring(0, index + 1) + 'sprite/' - } + // if (index === -1) { + // opt.spriteOut = 'sprite/' + // } else { + // opt.spriteOut = opt.slicePath.substring(0, index + 1) + 'sprite/' + // } async.eachSeries(codelines, function (backgroundCodeLine, eachCb) {