Topic: automatic images compression

aleks_v free asked 5 years ago


I place any image in the /img directory after run gulp mdb-go and  I do not find it compressed in the /dist/img directory.  But if I run gulp img-compression, then image from /img compressed in the /dist/img directory.   I suppose watch in gulpfile for some reason it's not responding on new files in /img. How do I fix this issue? Thanks for your help.


Piotr Glejzer staff commented 5 years ago

Hi,

you can add that command : 

gulp.start('img-compression');
 
to your CSS task and it will compress images every time when you will use your CSS files.
 
Best,
Piotr 


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: General Bootstrap questions
  • MDB Version: -
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows 10 64-bit
  • Provided sample code: No
  • Provided link: No