gulp-cache-bustrel

1.0.2 • Public • Published

This is a fork of gulp-cache-bust with minor mods to set "rel" instead of "t" in query string.

gulp-cache-bustrel

NPM version Build Status Coverage Status Dependency Status

cachebust plugin for gulp

Usage

First, install gulp-cache-bustrel as a development dependency:

npm install --save-dev gulp-cache-bustrel

Then, add it to your gulpfile.js:

var cachebust = require('gulp-cache-bustrel');
 
gulp.src('./dist/*/*.html')
    .pipe(cachebust({
        type: 'timestamp'
    }))
    .pipe(gulp.dest('./dist'));

API

cache-bust(options)

options.type

Type: String
Default: MD5

The time of query string you want appended to your asset URLs.

License

Copyright (c) 2014 Daniel Furze.

Licensed under the MIT license: http://danielfurze.mit-license.org

Package Sidebar

Install

npm i gulp-cache-bustrel

Weekly Downloads

2

Version

1.0.2

License

MIT

Last publish

Collaborators

  • ramsundark5