gulp-rev
gulp-rev copied to clipboard
Static asset revisioning by appending content hash to filenames: `unicorn.css` → `unicorn-d41d8cd98f.css`
The corresponding image path string does not exist in the css file, what should I do?
### Description https://www.npmjs.com/package/flag-icon-css #### Steps to reproduce style.css ``` .flag-icon-ad { background-image: url(../flags/1x1/ad.svg); } ``` rev-manifest.json ` "flag-icon-css/flags/1x1/ad.svg": "flag-icon-css/flags/1x1/ad-e15ddeabbf.svg", ` 无法实现图片url的替换。 nodejs版本: ^12.0.0
> No, locking is not the right answer. Do what @BerkeleyTrue said and you should be good :) > > _Originally posted by @bobthecow in https://github.com/sindresorhus/gulp-rev/issues/115#issuecomment-138101135_ > With regards to...
hi can anyone please give me a hand in how i can keep the filenames unchanged and get the manifest.js to this format ``` { "file.ext": "hash", } ``` for...
Wrong directory in manifest
Please consider this task: ``` gulp.task("sass-build", function() { return gulp.src(["source/sass/**/*.scss"]) .pipe(compass({ sass: "source/sass", })) .pipe(rev()) .pipe(gulp.dest("build/css")) .pipe(rev.manifest()) .pipe(gulp.dest("build/")); }); ``` In summary: **Source root** folder is `source/` **Build root** folder...
not work with gulp watch
``` function js_files() { return src('./assets/scripts/*.js') .pipe(dest('./public/scripts')) .pipe(rev()) .pipe(dest('./public/scripts')) .pipe(rename({ dirname: "/scripts/" })) .pipe(rev.manifest('public/rev-manifest.json',{ merge: true, base: './public' })) .pipe(dest('./public/')) } function defaultTask(cb) { watch('./assets/scripts/*.js', {ignoreInitial: false}, js_files) } exports.default...
why the source has changed, but the hash no change?
I have changed the source css code, and rebuild the task, but the hashed css name is the same as before.here is the code. ``` gulp.task('style', () => { var...
Option to override original files
Hi, Is there a way (or future plans) to provide an option to gulp-rev asking it to rename / replace the original files instead of preserving them and creating new...
Hello Just a question. I want a manifest like following: { "assets": { "general": { "js": [ "/assets/js/min/scripts.512bbf3f.min.js" ], "css": [ "/assets/css/style.686ae088.min.css" ] }, "above_the_fold": { "css": [ "/assets/css/above-the-fold.cb078d55.min.css" ],...
### 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...
Issue in rev-manifest.json file path
I am using gulp-rev and it is working fine. But I have one issue. I have multiple gulp task and I want to keep track of all in rev-mainfest.json file...