We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
installation succeeds
OS X 10.11.5 Xcode Version 7.3.1 Node v6.2.0
npm i imagemin-pngcrush site@1.0.0 /Users/me/project └─┬ imagemin-pngcrush@4.1.0 ├── exec-buffer@2.0.1 └─┬ through2@0.6.5 └─┬ readable-stream@1.0.34 └── isarray@0.0.1
test
const imagemin = require('imagemin'); const imageminPngcrush = require('imagemin-pngcrush'); imagemin(['images/*.png'], 'build', { use: [imageminPngcrush()] }) .then(() => { console.log('Images optimized'); }) .catch(err => { console.log(err) });
result
TypeError: pipe.then is not a function at fsP.readFile.then.data (/Users/me/project/node_modules/imagemin/index.js:15:4)
The text was updated successfully, but these errors were encountered:
Not converted to using promises yet.
Sorry, something went wrong.
582f87e
Should work now.
yes it works, thanks!
No branches or pull requests
installation succeeds
OS X 10.11.5
Xcode Version 7.3.1
Node v6.2.0
test
result
The text was updated successfully, but these errors were encountered: