grunt-contrib-imagemin icon indicating copy to clipboard operation
grunt-contrib-imagemin copied to clipboard

Write new files only if file size is reduced

Open mattyrob opened this issue 1 year ago • 1 comments

This PR slightly updated the logic when processing files through the minification process.

Currently a conditional statement tracks if the file size has been reduced but all of the files a re-written, this means that files of the same size, or even larger files could be produced.

Moving the file write commands within the conditional statement will ensure files are only written when the file size has been reduced.

Also, I have included updated package-lock.json that includes some minor dependency updates that should be no-breaking without further manual testing required.

mattyrob avatar Sep 26 '23 11:09 mattyrob

The Dependency upgrade address (all) 6 Critical, 12 High and 7 Moderate rated vulnerabilities.

mattyrob avatar Sep 26 '23 15:09 mattyrob