husky (setup git commit hooks) -> lint-stages (run specific commands by file type) -> imagemin (minify files)
git add -A
git commit # It will compress your images into git repo now
Since the images is now fully compressed, no extra steps is required by webpack/browserify……whatever.