jamesknelson / gulp-rev-replace

Rewrite occurences of filenames which have been renamed by gulp-rev
MIT License
389 stars 62 forks source link

Does not work with html.erb #35

Open mmahalwy opened 9 years ago

mmahalwy commented 9 years ago

This won't work for html.erb?

index.html.erb

shotokai commented 9 years ago

had the same issue with another template language. When you reference gulp-rev-replace, pass in an object with a key 'replaceInExtensions' and value of the .erb file suffix, or an array of multiple extensions, e.g.:

.pipe(revReplace({replaceInExtensions: ['.erb', '.html.erb']}))

koshitang commented 9 years ago

I had the same issue with another template language e.g. .cshtml file suffix.when file with chinese,the file garbled.I try to use the key 'replaceInExtensions',but it not work.how can i do?

mmahalwy commented 9 years ago

@shotokai would be best to answer this. I personally stopped using gulp in favor of webpack and haven't visited this since my previous job :( sorry @koshitang