1.0.9 • Published 3 years ago

gulp-recache v1.0.9

Weekly downloads
1
License
ISC
Repository
github
Last release
3 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

3 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

7 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.3

8 years ago