1.0.2 • Published 5 years ago

gulp-http2-push-manifest v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

travisci status npm package license MIT commit style angular semantic-release

gulp-http2-push-manifest

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

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