gulp-rev-html

0.1.1 • Public • Published

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

Package Sidebar

Install

npm i gulp-rev-html

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

4.28 kB

Total Files

4

Last publish

Collaborators

  • guozhenyi