{"action":"closed","issue":{"url":"https://api.github.com/repos/imagemin/imagemin-guetzli/issues/7","repository_url":"https://api.github.com/repos/imagemin/imagemin-guetzli","labels_url":"https://api.github.com/repos/imagemin/imagemin-guetzli/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/imagemin/imagemin-guetzli/issues/7/comments","events_url":"https://api.github.com/repos/imagemin/imagemin-guetzli/issues/7/events","html_url":"https://github.com/imagemin/imagemin-guetzli/issues/7","id":223508661,"number":7,"title":"grunt support?","user":{"login":"genericandy","id":5195231,"avatar_url":"https://avatars0.githubusercontent.com/u/5195231?v=3","gravatar_id":"","url":"https://api.github.com/users/genericandy","html_url":"https://github.com/genericandy","followers_url":"https://api.github.com/users/genericandy/followers","following_url":"https://api.github.com/users/genericandy/following{/other_user}","gists_url":"https://api.github.com/users/genericandy/gists{/gist_id}","starred_url":"https://api.github.com/users/genericandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genericandy/subscriptions","organizations_url":"https://api.github.com/users/genericandy/orgs","repos_url":"https://api.github.com/users/genericandy/repos","events_url":"https://api.github.com/users/genericandy/events{/privacy}","received_events_url":"https://api.github.com/users/genericandy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-04-21T22:02:03Z","updated_at":"2017-05-01T04:52:07Z","closed_at":"2017-05-01T04:52:07Z","body":"Im trying to use imagemin-guetzli with a gruntfile here & getting errors I can't account for:\r\n\r\nHere is the relevant part of the code from the file:\r\n\r\n`\r\nmodule.exports = function(grunt) {\r\n\r\n\tvar pngquant = require('imagemin-pngquant'),\r\n\t\tjpegRecompress = require('imagemin-jpeg-recompress'),\r\n\t\timageminGuetzli = require('imagemin-guetzli');\r\n\t\timagemin: {\r\n\t\t\trel: {\r\n\t\t\t\toptions: {\r\n    \t\t\t\tuse: [ imageminGuetzli() ]\r\n\t\t\t\t},\r\n\t\t\t\tfiles: [{\r\n\t\t\t\t\texpand: true,\r\n\t\t\t\t\tcwd: appConfig.app + '/',\r\n\t\t\t\t\tsrc: ['**/*.{png,jpg,gif}', '!bower_components/**'],\r\n\t\t\t\t\tdest: appConfig.rel + '/'\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t}`\r\n\r\nThe error Im getting is below. Any suggestions would be appreciated.\r\n\r\n> Running \"imagemin:rel\" (imagemin) task\r\n(node:15434) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Expected a buffer\r\n(node:15434) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.\r\n(node:15434) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Expected a buffer"}}
{"actor":{"display_login":"sindresorhus"}}