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();
  }));
                                                                    FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
                            
                            Open
Specification of the issue
                                            
        - User: Free
 - Premium support: No
 - Technology: MDB jQuery
 - MDB Version: 4.17.0
 - Device: iMAC
 - Browser: Chrome
 - OS: OS X Catalina
 - Provided sample code: No
 - Provided link: No
 
Tags
                                
                                
                            Related topics
                                
                                
                            
Grzegorz Bujański commented 6 years ago
Thanks for sending the example. We will check and fix it. Best, Grzegorz.