Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: MAYBE SOLVED img-compression not working after gulp install

peddomgar free asked 4 years ago


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();
  }));

Grzegorz Bujański staff commented 4 years ago

Thanks for sending the example. We will check and fix it. Best, Grzegorz.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: 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