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

Gulp tasks customization
Does Browsersync support keepalive option?
How do I start multiple terminals inside NeoVim with one command?
Gulp Clear Appears to Not Always Remove File(s) or Folder(s) During Multi-Source Merge
Gulp: watch HTML files, do some task, then browserSync.reload
gulp configuration with WebStorm
“gulp-sass”: 2.1.1 - how to log errors at compile time
Recompile dependent Stylus files by Gulp
Gulp: load order from a file to concat
How to set the version of a Node Webkit in gulp file?
Gulp uglify - overwrite uglified files
How to start a different browser or several browsers using Gulp serve?
How to use Watchify?
Angular2 ngIf not working in deployment environment
JHipster - Some CSS files did not appear in vendor file made by Gulp
Create a normal “build” task with gulp-watch without having to duplicate tasks

Categories

HOME
c#
reactjs
qlikview
joomla
grizzly
kendo-ui
itunesconnect
typo3
c++builder
postsharp
lithium
ms-access-2010
comments
jquery-select2
clip-path
sahi
activejdbc
elastalert
guidewire
solidity
fine-uploader
udeploy
hl7-fhir
computation-theory
dev-c++
google-drive-android-api
pushbullet
concatenation
ecmascript-2017
suitescript
ds-5
delphi-2010
vtd-xml
andengine
textview
tikz
spring-oauth2
rtos
flickr
openvms
wit-ai
outlook-2010
strategy-pattern
client-server
framebuffer
jslider
mediastream
file-descriptor
android-graphview
glide-image-library
flume-ng
php-mongodb
intervention
openidm
xamarin-test-cloud
spring-cloud-aws
suitesparse
google-scholar
spring-social-twitter
gevent
mac-app-store
papyrus
dimensionality-reduction
foreground
geokit
jigsaw
bytearray
boost-bind
bbedit
stdlist
ideavim
instabug
bioconductor
transbase
om
openhab
borland-c++
euro
system.diagnostics
avd
minko
nexusdb
launcher
frisby.js
diffmerge
yosemite
redmine-plugins
agent-based-modeling
livescript
triplestore
debuggervisualizer
class-library
autofilter
mobile-robots
aspnet-compiler
ojb
azure-pack
qgraphicsscene
simplemembership
biztalk-deployment
tasklist
beep
winrt-async
jquery-ui-map
animationdrawable
parsec
sqlbuddy
advanceddatagrid
project-files
httppostedfilebase
cpack
arraycollection
simultaneous
web-search
focus-stealing
script-tag

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App