shonny-ua / gulp-rev-collector

Static asset revision data collector from manifests, with was generated from different streams and replace they's links in html template.
MIT License
150 stars 41 forks source link

it doesn't work for media file such as mp3 #58

Open thinkerchan opened 5 years ago

thinkerchan commented 5 years ago
var vfs = require('vinyl-fs');
const revCollector = require('gulp-rev-collector');

vfs.src([
    './src/**/js/*.js',
    './src/**/*.html',
    './src/**/media/*' // mp3 files in media
  ])
  .pipe(revCollector())  // revCollector will break mp3
  .pipe(vfs.dest('./dist'));