gulp-hash | gulp plugin for cachebusting files | Frontend Framework library
kandi X-RAY | gulp-hash Summary
kandi X-RAY | gulp-hash Summary
A gulp plugin for cachebusting files by adding a hash to their name and/or content.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gulp-hash
gulp-hash Key Features
gulp-hash Examples and Code Snippets
Community Discussions
Trending Discussions on gulp-hash
QUESTION
I am struggling with this gulp task. I have a file that I need to modify post build which is a file that is part of a PWA package using Angular Service Worker. As a result of the modification I need to recalculate the hash and update the entry in the ngsw.json
file whose contents look like this.
ANSWER
Answered 2019-Jan-14 at 07:33You can write a plugin that'll take the result from hashsum
and simply use fs
to modify your json.
Here's a naive implementation:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gulp-hash
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page