Skip to content

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

Open
corford wants to merge 2 commits intoDragory:masterfrom
corford:master
Open

Added "dummyHash" option. If set to true, generated hashes will alway…#28
corford wants to merge 2 commits intoDragory:masterfrom
corford:master

Conversation

@corford
Copy link
Copy Markdown

@corford corford commented Aug 2, 2018

…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).

Charlie Orford added 2 commits August 2, 2018 17:57
…s be a string of 0s regardless of actual file contents (length will be as specified with the hashLength option).
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

Successfully merging this pull request may close these issues.

1 participant