
Rewrite occurences of filenames which have been renamed by gulp-rev
Gulp-rev-replace is a handy tool for developers looking to manage file renaming and cache-busting in their workflow. Although it is no longer actively maintained, many continue to find it invaluable for rewriting occurrences of filenames that have been renamed by gulp-rev. This package is especially useful when the goals are efficient asset management and a smooth build process.
The integration with other gulp tools, such as gulp-useref, allows for effective concatenation and cache-busting of assets like CSS and JS files. Despite its maintenance status, the features it offers provide a solid solution for those familiar with gulp-based workflows.
Canonical URIs: With the option to use canonical URIs, you ensure consistency in the way file paths are replaced, especially useful for different path separators.
Selective Replacement: The settings allow for selective filename substitution by constraining replacements to specific file types such as .js, .css, .html, and .hbs.
Custom Prefixing: The flexibility to add a prefix string to each filename replacement enables developers to tailor the output to specific requirements.
JSON Manifest Support: By reading JSON manifests created by gulp-rev, you can dynamically replace filenames that were renamed in earlier tasks, enhancing workflow continuity.
Filename Modification: The ability to modify both unreved and reved filenames before they are used allows for customized outputs, which can be particularly helpful for managing source maps.
Stream Integration: Gulp-rev-replace smoothly pipes through streams containing both updated files and renamed files, making it adaptable to various development setups.
Community Contributions: While the package is not maintained, it has seen contributions from a number of developers, reflecting a collaborative effort within the community.
