Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not making replacements in src files without replaceInExtensions #72

Open
toneplex opened this issue Feb 2, 2017 · 0 comments
Open

Comments

@toneplex
Copy link

toneplex commented Feb 2, 2017

So it turns out that without the replaceInExtensions option, replacements won't work. I had to put that in to get replacements to work. A suggestion for updated documentation would be

gulp.task("revreplace", ["revision"], function(){
  var manifest = gulp.src("./" + opt.distFolder + "/rev-manifest.json");

  return gulp.src(opt.srcFolder + "/index.html")
    .pipe(revReplace({manifest: manifest, replaceInExtensions: ['.html']}))
    .pipe(gulp.dest(opt.distFolder));
});
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

No branches or pull requests

1 participant