Add cache buster to Ionic 2 gulp tasks

Hi,

I am looking for best practice advice. I want to add gulp-cache-bust to my build task for copyHTML. I could edit that task itself and pipe through, but I don’t want to do it again if I end up deciding to update my version of ionic. Is it possible to add it via the main gulpfile?

Something like the following, except that actually works…

gulp.task('html', copyHTML).pipe(cachebust({
        type: 'timestamp'
    })).pipe(gulp.dest('www/build'));;
1 Like