1.0.9 • Published 5 years ago

gulp-recache v1.0.9

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

gulp-recache

Features

  • 缓存控制更新
  • 在地址后面加上文件hash值来更新缓存

Usage

var gulp        = require('gulp'),
    watch       = require('gulp-watch'),
    reCache     = require('gulp-recache');

gulp.task('build.cache', function(){

    gulp.src('src/**/*')
        .pipe(reCache({
            //query的key值
            queryKey: '_rvc_',
            queryVal: '@hash',
            hashSize: 10,
            // toBase64_QK: '_tobase64',
            toBase64Limit: 1000,
            basePath: 'D:/Sites/GitHub/me/gulp-recache/example'
        }))
        .pipe(gulp.dest('dist'));

});

Options

+ queryKey      :query的key值,默认 '_rvc_'
+ queryVal      :地址后面的query值,默认 '@hash'(填充文件MD5值)
+ hashSize      :生成的hash长度
+ toBase64_QK   :可以在uri后面带上需要转为base64的query key, 默认 '_tobase64'
+ toBase64Limit : 限制转base64的图片大小,默认为1000(字节)
+ basePath      :资源根路径

#License ISC

1.0.9

5 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

9 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.3

10 years ago