Skip to content

Static asset revisioning by appending timestamp to filenames: style.css => style.css?v=1646036823

License

Notifications You must be signed in to change notification settings

guozhenyi/gulp-rev-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Version License

gulp-rev-html

Static asset revisioning by appending timestamp to filenames:
style.css => style.css?v=1646036823
index.js => index.js?v=1646036823

Install

npm:

$ npm install --save-dev gulp-rev-html

yarn:

$ yarn add --dev gulp-rev-html

Usage

const gulp = require('gulp');
const revHtml = require('gulp-rev-html');

function addTime() {
  return gulp.src('src/**/*.html')
    .pipe(revHtml())
    .pipe(gulp.dest('dist'));
}

exports.default = gulp.series(addTime);

License

MIT

About

Static asset revisioning by appending timestamp to filenames: style.css => style.css?v=1646036823

Resources

License

Stars

Watchers

Forks

Packages