gulp-hash icon indicating copy to clipboard operation
gulp-hash copied to clipboard

All hashes in different hash files

Open danielsatanik opened this issue 7 years ago • 0 comments

I have multiple tasks in my hash file and after the whole pipeline is run through all of my different hash files for the different tasks have the data accumulated. As a result I have the css in its own hash file, the js hash file also has the css inside, the videos hash file includes the css, js and videos and the images have all of them inside.

My code for one task looks like this

gulp.task("videos", function () {
    del(["static/videos/**/*"]);
    gulp.src("src/videos/**/*")
        .pipe(hash())
        .pipe(gulp.dest("static/videos"))
        //Create a hash map
        .pipe(hash.manifest("hash.json"))
        //Put the map in the data directory
        .pipe(gulp.dest("data/videos"));
})

Can I kind of clean the hash pipeline between tasks so the different hash files contain only certain hashes?

danielsatanik avatar Aug 27 '18 21:08 danielsatanik