1

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

  • Are you using exactly the same versions of `mozjpeg` on both systens? Where are you getting them from on each platform? Are you using the versions built by the NPM module or some system version? – bk2204 Oct 10 '20 at 01:21
  • Yes, same version anytime we see our package.json change we just run npm install. We also use the same version of node and npm. – Tony Keiser Oct 11 '20 at 03:11

0 Answers0