Skip to content

help manifest format #263

Open
Open
@quasiperfect

Description

@quasiperfect

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))
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions