1.0.1 • Published 8 years ago
gulp-add-version v1.0.1
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>