Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All hashes in different hash files #29

Open
danielsatanik opened this issue Aug 27, 2018 · 0 comments
Open

All hashes in different hash files #29

danielsatanik opened this issue Aug 27, 2018 · 0 comments

Comments

@danielsatanik
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant