0.1.6 • Published 19 days ago

@davidsneighbour/netlify-plugin-hugo-helper v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
19 days ago

This Netlify build plugin adds caching of Hugo resource files to your build process.

Setup

Install the package with:

npm install --save-dev @davidsneighbour/netlify-plugin-hugo-helper

Then add it to your netlify.toml file:

[[plugins]]
package = "@davidsneighbour/netlify-plugin-hugo-helper"

[plugins.inputs]
debug = false

The inputs section can contain the following parameters:

  • cache - Enable caching of resources between deploys (default: true)
  • debug - Show verbose logs and list backed-up and restored files (default: false)
  • srcdir - Relative path to source directory in case you use Hugo's "--s" option (default: '')

To configure the plugin for a certain deploy context, you can use the context subsection:

[[context.production.plugins]]
package = "@davidsneighbour/netlify-plugin-hugo-helper"

[context.production.plugins.inputs]
debug = false
0.1.6

19 days ago

0.1.5

2 months ago

0.1.4

2 months ago

0.1.3

2 months ago

0.1.2

2 months ago