Topic: MAYBE SOLVED img-compression not working after gulp install
image files pasted in ./img directory are not compressing neither moving to ./dist/img
I've look at gulpfile.js and saw there wasn't a gulp.watch for this behavior, there is one commented line regarding this but when uncommented launch an error:
// gulp.watch('**/*', {
// cwd: './img/'
// }, ['img-compression']);
So I create one and now seems to be working:
gulp.watch('img/**/*', gulp.series('img-compression', (done) => {
browserSync.reload();
done();
}));
Open
- User: Pro
- Premium support: No
- Technology: jQuery
- MDB Version: 4.17.0
- Device: iMAC
- Browser: Chrome
- OS: OS X Catalina
- Provided sample code: No
- Provided link: No
Grzegorz Bujański staff commented 11 months ago
Thanks for sending the example. We will check and fix it. Best, Grzegorz.