Asset Crusher
Version updated for https://github.com/alireza-fa/asset-crusher to version v1.1.0.
- This action is used across all versions by ? repositories.
Go to the GitHub Marketplace to find the latest changes.
Release notes
Asset Crusher just got smarter. đź§
In previous versions, converting logo.png to logo.webp would break your website because the code still pointed to the old .png file. Not anymore.
✨ New in v1.1.0: Auto-Refactor Protocol
Now, when Asset Crusher optimizes an image, it automatically hunts down references to that file in your source code and updates them.
- 📝 Smart Search & Replace: Automatically updates references in
.html,.css,.js,.jsx,.ts,.tsx,.vue,.svelte,.php, and.jsonfiles. - 🔄 Seamless Transition: Your
<img>tags and CSSbackground-imagerules are updated to point to the new.webpversions instantly.
🔥 Core Features:
- WebP Conversion: Reduces image size by up to 80%.
- H.265 Video: Optimizes video assets efficiently.
- Nuclear History Rewrite: Keeps your
.gitfolder tiny by amending commits (Default).
📦 Quick Update
- name: Crush Assets
uses: alireza/asset-crusher@v1.1.0 # Updated to v1.1.0
with:
quality: '80'
Check the README for full documentation.