🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

netlify-plugin-hugo-cache-resources

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

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!

0.2.1
latest
Source
npm
Version published
Weekly downloads
1.5K
19.88%
Maintainers
1
Weekly downloads
 
Created
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

netlify

FAQs

Package last updated on 20 May 2021

Did you know?

Socket

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