Skip to content

Commit 748aaf7

Browse files
committed
Fix: path to the templates
1 parent fc5190a commit 748aaf7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,6 @@ function saveSprites(images, opts, sprites) {
391391
.map(function(sprite) {
392392
sprite.path = makeSpritePath(opts, sprite.groups);
393393

394-
console.log(sprite.path);
395-
396394
return Q.nfcall(fs.writeFile, sprite.path, new Buffer(sprite.image, 'binary'))
397395
.then(function() {
398396
log(util.format('Spritesheet %s generated.', sprite.path));
@@ -506,7 +504,7 @@ function preloadTemplates(images, opts, sprites, css) {
506504
var all = lodash
507505
.chain(TEMPLATES)
508506
.map(function(templatePath, templateKey) {
509-
return Q.nfcall(fs.readFile, path.resolve(templatePath), 'utf-8')
507+
return Q.nfcall(fs.readFile, path.resolve(__dirname, templatePath), 'utf-8')
510508
.then(function(data) {
511509
return {
512510
key: templateKey,

0 commit comments

Comments
 (0)