Append a timestamp to asset URLs in a web app.
var cacheBreak = require('gulp-cache-break');
...
gulp.task('cacheBreak', function(callback){
gulp.src('templates/header.html')
.pipe(cacheBreak('assets/css/styles.css'))
.pipe(cacheBreak('assets/js/scripts.js'))
.pipe(gulp.dest('dist'));
})
- Added module require example
- Added ability to use optional foo.TIMESTAMP.js naming convention (#1)
- First release