image-webpack-loader
image-webpack-loader copied to clipboard
Can't opimize more than 4096 images per folder
Hello,
I'm using webpack with this loader, but if there are more than 4096 images in a folder, i got this error :
95% [0] emittingError: EPROTO: protocol error, open 'myFile.jpg'
To reproduce it, create a folder with 4100 images and run webpack with these options :
{
loader: require.resolve('image-webpack-loader'),
options: {
mozjpeg: {
quality: 85
},
pngquant: {
quality: '65-90',
speed: 10
},
gifsicle: {
optimizationLevel: 3
}
}
}