Socket
Socket
Sign inDemoInstall

netlify-plugin-hugo-cache-resources

Package Overview
Dependencies
11
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    netlify-plugin-hugo-cache-resources

Persist Hugo resources folder between Netlify builds for huge build speed improvements!


Version published
Weekly downloads
1K
increased by0.99%
Maintainers
1
Install size
145 kB
Created
Weekly downloads
 

Readme

Source

Netlify Build Plugin: Persist Hugo resources Between Builds

Persist Hugo resources folder between Netlify builds for huge build speed improvements! ⚡️

This plugin caches the resources folder after build. If you are processing many images, this would improve build duration significantly.

Usage

You can install this plugin in the Netlify UI from this direct in-app installation link or from the Plugins directory.

For file-based installation, add the following lines to your netlify.toml file:

[build]
  publish = "public"

[[plugins]]
  package = "netlify-plugin-hugo-cache-resources"

	[plugins.inputs]
	# If it should show more verbose logs (optional, default = true)
	debug = true
	# Relative path to source directory in case you use Hugo's "--s" option
	srcdir = "path/to/website"

Note: The [[plugins]] line is required for each plugin, even if you have other plugins in your netlify.toml file already.

To complete file-based installation, from your project's base directory, use npm, yarn, or any other Node.js package manager to add the plugin to devDependencies in package.json.

npm install -D netlify-plugin-hugo-cache-resources

Keywords

FAQs

Last updated on 20 May 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc