Bjorn
πŸ‡³πŸ‡± | Founder of YTCount.com | Freelance designer and developer
  • πŸ”₯ 136
  • πŸ“ Amsterdam
  • πŸ“… Oct '17

I am using Gulp Imagemin for that. I don't know if you're using Gulp, but this this package is great.
https://www.npmjs.com/package/gulp-imagemin