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

Added "dummyHash" option. If set to true, generated hashes will alway…

Open corford opened this issue 6 years ago • 0 comments

…s be a string of 0s regardless of actual file contents (length will be as specified with the hashLength option).

Why? When developing, it's useful to be able to force the hash to a known value (so you can get deterministic file names). This makes it possible, for example, to use browserSync.stream() on css assets without having to completely disable the asset hashing and manifest code in your dev build scripts (thus helping keep your dev scripts as close to your production ones as possible).

corford avatar Aug 02 '18 18:08 corford