How do I replace the filenames listed in index.html with the output of gulp-rev? -


i'm using gulp-rev build static files can set never expire. i'd replace references generated files in index.html these renamed files, can't seem find grunt usemin.

as far can tell right now, have options.

  1. use gulp-usemin2, depends on gulp-rev. when go search gulp plugins, says gulp-usemin2 should use gulp-useref instead, can't configure gulp-ref use gulp-rev's output.
  2. write own plugin replace blocks (scripts & styles) in index.html (and in css) generated files.

any ideas? don't see why little use case should thing in way replacing grunt.

rather trying solve problem multiple gulp steps (which gulp-rev seems want do), i've forked gulp-rev gulp-rev-all solve usecase in 1 gulp plugin.

for personal usecase wanted rev absolutely else raised feature request, there should ability exclude files index.html. implemented soon.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -