gulp
gulp-imagemin: error “pPipe(…) is not a function”
Running gulp-imagemin causes the following error: /.../node_modules/imagemin/index.js:64 const pipe = opts.plugins.length > 0 ? pPipe(opts.plugins)(input) : Promise.resolve(input); ^ TypeError: pPipe(...) is not a function Source: import plugins from 'gulp-load-plugins'; ... gulp.task('img:production', () => gulp.src(`${config.dirs.src}/img/**/*`) .pipe(plugins().imagemin()) .pipe(gulp.dest(`${config.dirs.dist}/img`)) ); ... gulp.task('build:production', [ 'img:production', 'html:production', 'css:production', 'js:production', 'copy', 'critical', ], ); Gulp: 3.9.1 Gulp-Imagemin: 3.2.0
This seems to be an issue with the current version of gulp-imagemin. But it should be fixed with the upcomming version, according to that issue: https://github.com/sindresorhus/gulp-imagemin/issues/261
Related Links
Passing image optimization options not working in gulp plugin.
How to stop correctly a gulp watch-task from Atom editor?
Change URL in ngrok using gulp
Gulp wiredep ignorePath not working
FSEvents_connect invalid destination port blocking gulp process
Gulp rename file to change case only
local gulp not found after installing globally and locally
Gulp watch only new SCSS files
Gulp won't run project
How to use Basic Authentification with gulp-sftp?
Gulp zip missing some files in a folder
gulp sass is not working showing error
How to fix plumber cannot pipe to undefind with pug
Cannot find module 'laravel-elixir' when I type 'gulp' in my laravel project dir
Unable to build Sitecore Habitat solution
gulp - Error events.js:72 throw er; // Unhandled 'error' event