🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

gulp-hash

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-hash - npm Package Compare versions

Comparing version

to
4.2.1

5

CHANGELOG.md
# Changelog
## 4.2.0
Thanks to PR #27 from @migolo:
* Replace deprecated gulp-util with Vinyl
* This should allow the plugin to work on Gulp 4
## 4.1.0

@@ -4,0 +9,0 @@ Thanks to PR #18 from @MEGApixel23:

2

package.json
{
"name": "gulp-hash",
"version": "4.2.0",
"version": "4.2.1",
"description": "Cachebust your assets by adding a hash to the filename",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -14,7 +14,7 @@ # gulp-hash [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]

.pipe(gulp.dest('public/js')) // Write the renamed files
.pipe(hash.manifest('assets.json', {
.pipe(hash.manifest('public/assets.json', { // Generate the manifest file
deleteOld: true,
sourceDir: __dirname + '/public/js'
})) // Switch to the manifest file
.pipe(gulp.dest('public')); // Write the manifest file
}))
.pipe(gulp.dest('.')); // Write the manifest file (see note below)
```

@@ -24,2 +24,4 @@

**Note:** It is recommended to use the full relative path to the manifest file in `hash.manifest()` as opposed to setting it in `gulp.dest()`. This is so the `append` option is able find the original manifest file. The example above demonstrates this.
## Streaming

@@ -26,0 +28,0 @@ The plugin fully supports both buffers and streams. If you encounter any problems, please open an issue on GitHub and I'll look into it!