1.0.1 • Published 4 years ago

gulp-hash-file-plugin v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

About

This plugins emits an additional file named [file].hash containing an MD5 hash for each files in the stream.

Usage

yarn add -D gulp-hash-file-plugin

const { task, dest } = require('gulp');
const hash = require('gulp-hash-file-plugin');

function myTask() {
    return src(files)
            .pipe(...)
            .pipe(hash())
            .pipe(dest(output));
}

exports.myTask = myTask;

Example output files:

  • fileA.js
  • fileA.js.hash
  • fileB.js
  • fileB.js.hash

Options

NameDescriptionDefault
hashFileExtensionExtension of the generated hash filehash