Static asset revisioning by appending content hash to filenames: `unicorn.css` → `unicorn-d41d8cd98f.css`
by sindresorhusJavaScript
Last 12 weeks · 0 commits
6 of 6 standards met
No, locking is not the right answer. Do what @BerkeleyTrue said and you should be good :) _Originally posted by @bobthecow in https://github.com/sindresorhus/gulp-rev/issues/115#issuecomment-138101135_ With regards to #115, why is locking the incorrect answer here? It seems unnecessarily error-prone to have parallel tasks possibly overwrite or garble the manifest file. Would it not make sense to have some form of locking for the manifest file, rather than to have undefined behaviour in a common use case and expect people to stumble upon #115 and implement some work around themselves?
What's new? ⚠️ Breaking change: Require Node.js 20+ (as per sort-keys@6) Update the deps to the latest version Update the GitHub action (I copied https://github.com/sindresorhus/sort-keys/blob/main/.github/workflows/main.yml) As usual, thank you so much for all the packages and the regular maintenance work 🥹
Thanks for releasing a new version of 🙏 This time, I want to update ! What's new? Update all dependencies Migrate to ESM Migrate async tests using Fix linting errors with new The tests are passing in my repo. I also updated some examples in the readme but I am not too sure about the ones that mix ESM and CJS modules.
Hi! First of all thank you for maintaining this package! I used it quite a lot in the past and loved it :) I created gulp-rev-dist-clean back in 2017 out of a need I had to clean-up old files that had been removed from the directory but that where still present in the directory even after running . Usually you would completely empty the directory before running , so that everything in the directory would correspond to actual files in the directory, but this could get heavy with huge builds in watch mode. To prevent re-building everything, especially images, each time a file changes, and to keep the directory "fresh", I needed a solution. I tried other packages at that time, including , but it did not support this specific use-case, so I decided to develop my own. Fast forward to today, I am still maintaining it and adding new features to it as it turns out it is also used by others. Therefore I wonder if we could add it to the list of "clean-up" tools offered by the community? Thanks!
Repository: sindresorhus/gulp-rev. Description: Static asset revisioning by appending content hash to filenames: `unicorn.css` → `unicorn-d41d8cd98f.css` Stars: 1535, Forks: 210. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Topics: gulp-plugin, hash, javascript, manifest, nodejs, rev. Latest release: v12.0.0 (8mo ago). Open PRs: 0, open issues: 16. Last activity: 8mo ago. Community health: 100%. Top contributors: sindresorhus, bobthecow, borisceranic, benbieler, uberspeck, pioug, WVmf, phazei, ajaybc, alexandre-abrioux and others.