sindresorhus / gulp-rev

Static asset revisioning by appending content hash to filenames: `unicorn.css` → `unicorn-d41d8cd98f.css`
MIT License
1.54k stars 217 forks source link

Not using the latest css as source #254

Open Coysh opened 5 years ago

Coysh commented 5 years ago

Description

The manifest.json file being merged with, is containing the correct hash of the compiled SCSS. Manifest.json is updated (according to filemtime) but not with the correct rev. Is it possible to fancylog the md5 rev is generating?


    const rev = require('gulp-rev');
    gulp.src([pkg.paths.dist.css + pkg.vars.cssName], {base: 'public/'})
        .pipe(rev())
        .pipe(gulp.dest('./public/'))
        .pipe(rev.manifest('templates/manifest.json',{merge:true}))
        .pipe(gulp.dest('./'));
    $.fancyLog(' -> Processed ['+pkg.paths.dist.css + pkg.vars.cssName+']');```

#### Steps to reproduce
Run `gulp static-assets-version`