ctf0 / laravel-mix-versionhash

Auto append hash to file instead of using virtual one
MIT License
61 stars 18 forks source link

Doesn't delete old versions #34

Closed almostkareem closed 4 years ago

almostkareem commented 4 years ago

Hello, I think you missed the easiest feature here, This package should behave exactly the same as Mix version as it replaces old versions with new ones , doesn't just create a new version upon old files.

Capture d’écran 2020-04-06 à 22 44 23
ctf0 commented 4 years ago

actually with version the file is overwritten because the file name hash is saved into manifest.json, but with this plugin the name is written to disk.

so the behavior is expected :+1:

almostkareem commented 4 years ago

Yes I understand, would be cool if it removed prev versions before saving the new one. Optional feature at least 👌

Le mar. 7 avr. 2020 à 06:58, Muah notifications@github.com a écrit :

actually with version the file is overwritten because the file name hash is saved into manifest.json, but with this plugin the name is written to disk.

so the behavior is expected 👍

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ctf0/laravel-mix-versionhash/issues/34#issuecomment-610190865, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF6VUCA4HZZFQQU7463XPHDRLK6IHANCNFSM4MCT3W4A .

ctf0 commented 4 years ago

u can use https://github.com/johnagan/clean-webpack-plugin , already in the rdme 👍