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

Please elaborate on your documentation with an example on how to call the hashed generated file from HTML

Open lmuzquiz opened this issue 7 years ago • 1 comments

Hello, i read your complete documentation on the plugin. And i got half of it working, since i get the hashed names. The only problem is that from reading your documentation i can't understand how to call the hashed file from my HTML. Could you elaborate an example on how to call the file on your documentation please?

Do i have to put <%= name %>-<%= hash %><%= ext %> on my HTML and that will convert to the name.hashed.extention or what? cause i already tried and its not working.

lmuzquiz avatar Aug 28 '18 15:08 lmuzquiz

This plugin does not touch the HTML (or other references to the hashed files). You'll need to use a separate plugin such as https://github.com/Dragory/gulp-hash-references for that.

Dragory avatar Aug 28 '18 15:08 Dragory