gulp-rev-replace icon indicating copy to clipboard operation
gulp-rev-replace copied to clipboard

Does not work with html.erb

Open mmahalwy opened this issue 9 years ago • 3 comments

This won't work for html.erb?

index.html.erb

mmahalwy avatar Apr 29 '15 21:04 mmahalwy

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']}))

shotokai avatar May 20 '15 18:05 shotokai

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?

koshitang avatar Aug 11 '15 07:08 koshitang

@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

mmahalwy avatar Aug 27 '15 00:08 mmahalwy