vite-plugin-compression
vite-plugin-compression copied to clipboard
Fix: skip if compressed >= original + only delete if new file was ok
- 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.