jamesknelson / gulp-rev-replace

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

can gulp-rev-replace replace in jade? #48

Closed YDSS closed 7 years ago

YDSS commented 8 years ago

Hi, I'm using gulp-rev-replace for a while and it's fine, until I decide replace "plain html" with template. I found gulp-rev-replace can not replace path in jade, then I read doc and issues and got nothing useful. Does anyone has some advices?

futuranna commented 8 years ago

You can add jade to the replaceInExtensions

gulp.src('src/**/*.jade')
        .pipe(revReplace({
            replaceInExtensions: ['.jade']
        }))
        .pipe(gulp.dest('dist'));
andrewkdouglas commented 7 years ago

The above fix is correct, and this should be closed as not a bug