vite-plugin-compression icon indicating copy to clipboard operation
vite-plugin-compression copied to clipboard

Fix: skip if compressed >= original + only delete if new file was ok

Open vHeemstra opened this issue 2 years ago • 0 comments

  • Only save compressed content if it is smaller than the original (this might need a extra config option, but is a sensible default).
  • Only delete the original file if compression and the saving of the compressed file were successful.

vHeemstra avatar Jun 22 '23 11:06 vHeemstra