0.0.1 • Published 5 years ago

gulp-css-cache-buster v0.0.1

Weekly downloads
5
License
-
Repository
github
Last release
5 years ago

gulp-css-cache-buster Build Status

Plugin for Gulp to set version of images in styles

Install

$ npm install --save-dev gulp-css-cache-buster

Usage

const gulp = require('gulp');
const ccBuster = require('gulp-css-cache-buster');

gulp.task('default', () =>
	gulp.src('src/file.css')
		.pipe(ccBuster())
		.pipe(gulp.dest('dist'))
);

API

ccBuster(options)

options

Type: Object

options.urlParam

Type: string Default: v

Name of param appending to image

options.strategy

Type: string Default: random-string

Variants: random-string, datetime, custom-value

options.datetimeFormat

Type: string Default: DD.MM.Y HH:mm:ss

See https://momentjs.com/docs/#/displaying/format/

options.customValue

Type: string Default: haven't default value