hashdest plugin for gulp
First, install gulp-hashdest as a development dependency:
npm install --save-dev gulp-hashdestThen, add it to your gulpfile.js:
var hashdest = require("gulp-hashdest");
gulp.src("./src/*.js")
.pipe(hashdest({
"prefix": "foo-"
}))
.pipe(gulp.dest("./dist"));Type: String
Default: ``
Prefix for inserted path.
Type: String
Default: sha1
Type of hash. All values allowed for crypto are valid.