#gulp-rev-qs
The gulp plugin for cache-busting files using query string.
e.g. <script src="/js/awesome.js?rev=3457654245"></script>
##Install
npm install quex46/gulp-rev-qs --save
##Usage
-app/
|-gulpfile.js
|-assets/
|-views/
// gulpfile.js
var gulp = require('gulp');
var rev = require('gulp-rev-qs');
gulp.task('rev', function () {
return gulp.src('views/**/*.html') // get all *.html files from ./views/
.pipe(rev('./assets')) // populate all "?rev=0" queries with checksums
.pipe(gulp.dest('rev_views')); // save populated html-files in ./rev_views/
});$ gulp rev
options.base String - assets basepath
options.resolver Function - use this param if you would dinamically resolve asset filepath. See example here
rev('./assets') is identical to rev({base: './assets'})
##Running tests
npm test
##License gulp-rev-qs is licensed under the MIT License.