sindresorhus / gulp-rev

Static asset revisioning by appending content hash to filenames: `unicorn.css` → `unicorn-d41d8cd98f.css`

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not using the latest css as source

Coysh opened this issue · comments

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`