1.0.1 • Published 8 years ago

gulp-add-version v1.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago
var ver          = require('gulp-version-append');

gulp.task('version',function(){
    gulp.src('./src/tpl/**/**/*.html')
    .pipe(ver())
    .pipe(gulp.dest(ROOT+'/'));
});
<!-- before -->
<script type="text/javascript" src="/public/demo.js?ver=?"></script>
<!-- after -->
<script type="text/javascript" src="/public/demo.js?ver=f120c06d92"></script>