netlify-context-recorder

1.0.1 • Public • Published

Netlify Context Recorder for Webpack.

This Webpack plugin saves Netlify's context information into a JSON file. You can use this file to display information about the build context, like the git sha used to build the site.

Netlify Context Recorder is released under the MIT License. Please make sure you understand its implications and guarantees.

Usage

Add the plugin to your webpack configuration:

plugins: [
  ...
  new NetlifyContextRecorder()
],

Options

  • options.contextFilePath: path to save the context file within the distribution dir, by default "netlify-context.json".
  • options.enabledFor: array with context names the recorder is enabled for, by default ["deploy-preview", "branch-deploy"].

Readme

Keywords

Package Sidebar

Install

npm i netlify-context-recorder

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • calavera