diff --git a/src/index.js b/src/index.js index 59851b8..5f73723 100644 --- a/src/index.js +++ b/src/index.js @@ -152,7 +152,7 @@ function spriteSmash(options) { .join(renamed.newName); }); - file.contents = new Buffer(contents); + file.contents = Buffer.from(contents); that.push(file); }, this);