Skip to content
This repository has been archived by the owner on Nov 12, 2019. It is now read-only.

AndrewLeedham/gulp-http2-push-manifest

Repository files navigation

gulp-http2-push-manifest

Generate a push manifest from a stream of html files. Wraps http2-push-manifest into a Gulp plugin.

GitHub Actions Status npm package license MIT commit style angular semantic-release Dependabot Status

Usage

gulp-http2-push-manifest provides a simple wrapper around http2-push-manifest which generates a push_manifest.json file, listing static resources found on a web page.

var manifest = require("gulp-http2-push-manifest");
 
// Generate push_manifest.json
gulp.src("./src/*.html")
  .pipe(manifest()); // Will generate push_manifest.json in the cwd, based on all streamed html files

// Generate push.json
gulp.src("./src/*.html")
  .pipe(manifest({manifestName: "push.json"})); // Will generate push.json in the cwd, based on all streamed html files

// Verbose output
gulp.src("./src/*.html")
  .pipe(manifest({verbose: true})); // Will allow http2-push-manifest's progress to be logged

LICENSE | CHANGELOG | ISSUES