Skip to content

Instantly share code, notes, and snippets.

View tilsammans's full-sized avatar

Joost Baaij tilsammans

View GitHub Profile
@tilsammans
tilsammans / NetlifyServerPushPlugin.js
Last active January 17, 2018 08:57 — forked from ValentinFunk/NetlifyServerPushPlugin.js
Webpack - Generate Netlify HTTP2 Server Push _headers File when using the HtmlWebpackPlugin
/**
* Generate a Netlify HTTP2 Server Push configuration.
*
* Options:
* - headersFile {string} path to the _headers file that should be generated (relative to your output dir)
*/
function NetlifyServerPushPlugin(options) {
this.options = options;
}