4.0.0 • Published 5 years ago

gulp-cache-hyper-bust v4.0.0

Weekly downloads
8
License
MIT
Repository
github
Last release
5 years ago

Gulp version of cache-hyper-bust

gulpfile.js

const cacheBreaker = require('gulp-cache-hyper-bust');

[...]

gulp.task('cache-breaker', function(callback) {
    const timestamp = new Date().getTime();

    pump(
        [
            gulp.src(['path/to/scan/*.php', '!**/path/not/to/scan/**']),
            cacheBreaker({
                images: false,
                showLog: true,
                staticTimestamp: timestamp,
                type: 'timestamp',
            }),
            gulp.dest(
                // to overrite source file
                function(file) {
                    return file.base;
                }
            ),
        ],
        callback
    );
});

gulp.task('build', [
    'some',
    'other',
    'tasks',
    'cache-breaker',
);

[...]
4.0.0

5 years ago

3.1.2

5 years ago

3.1.1

7 years ago

3.1.0

7 years ago

3.0.0

7 years ago

2.1.0

7 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.0

7 years ago