GIT Cross platform Windows VS MacOS image file sizes / binary differs

54 views Asked by At

I'm sharing a project between MacOS and Windows users anytime making changes with JS or SCSS files we run webpack (used gulp previously) for production. After running webpack untouched image file sizes differ. They look the same but binary is different causing the smallest changes in js or scss file to be pushed with 200+ images.

// webpack.mix.js
new ImageminPlugin({
  test: /\.(jpe?g|png|gif|svg)$/i,
  plugins: [
    imageminMozjpeg({
      quality: 80
    })
  ],
}),
//git config
core.autocrlf=false

enter image description here

0

There are 0 answers