gulp-css-cache-buster

0.0.1 • Public • Published

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

/gulp-css-cache-buster/

    Package Sidebar

    Install

    npm i gulp-css-cache-buster

    Weekly Downloads

    1

    Version

    0.0.1

    License

    none

    Unpacked Size

    5.22 kB

    Total Files

    6

    Last publish

    Collaborators

    • n30fly