Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help manifest format #263

Open
quasiperfect opened this issue Mar 15, 2021 · 0 comments
Open

help manifest format #263

quasiperfect opened this issue Mar 15, 2021 · 0 comments

Comments

@quasiperfect
Copy link

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 now i have

{
  "D:/laragon/www/gulp/gutenberg.css": "D:/laragon/www/gulp/eaa6d87719",
  "D:/laragon/www/gulp/main.css": "D:/laragon/www/gulp/19c0c0e257"
}

using

gulp.task("revision", () =>
  gulp
    .src([config.theme.assetsDestPath + "**/*.{css,js}"])
    .pipe(rev())
    .pipe(through.obj(function (file, enc, cb) {
      file.path = file.revHash;
      cb(null, file);
    }))
    .pipe(rev.manifest({ merge: true }))
    .pipe(gulp.dest(config.theme.path))
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant