automatic images compression


Topic: automatic images compression

aleks_v asked 6 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 6 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

Open

Specification of the issue
  • User: 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