A optional Glob pattern matching module paths to skip when vendoring, e.g. “github.com/**”
When enabled, we will pick the vendored module closest to the module using it. The default behavior is to pick the first. Note that there can still be only one dependency of a given module path, so once it is in use it cannot be redefined.
Defines the proxy server to use to download remote modules. Default is direct, which means “git clone” and similar.
Comma separated glob list matching paths that should not use the proxy configured above.
Comma separated glob list matching paths that should be treated as private.
The workspace file to use. This enables Go workspace mode. Note that this can also be set via OS env, e.g. export HUGO_MODULE_WORKSPACE=/my/hugo.work This only works with Go 1.18+. In Hugo v0.109.0 we changed the default to off and we now resolve any relative work filenames relative to the working directory.
A comma separated (or a slice) list of module path to directory replacement mapping, e.g. github.com/bep/my-theme -> ../..,github.com/bep/shortcodes -> /some/path. This is mostly useful for temporary locally development of a module, and then it makes sense to set it as an OS environment variable, e.g: env HUGO_MODULE_REPLACEMENTS="github.com/bep/my-theme -> ../..". Any relative path is relate to themesDir, and absolute paths are allowed.
Note that the above terms maps directly to their counterparts in Go Modules. Some of these setting may be natural to set as OS environment variables. To set the proxy server to use, as an example:
env HUGO_MODULE_PROXY=https://proxy.example.org hugo
Module Config: hugoVersion
If your module requires a particular version of Hugo to work, you can indicate that in the module section and the user will be warned if using a too old/new version.
The source directory of the mount. For the main project, this can be either project-relative or absolute and even a symbolic link. For other modules it must be project-relative.
Where it should be mounted into Hugo’s virtual filesystem. It must start with one of Hugo’s component folders: static, content, layouts, data, assets, i18n, or archetypes. E.g. content/blog.
The language code, e.g. “en”. Only relevant for content mounts, and static mounts when in multihost mode.
includeFiles (string or slice)
One or more glob patterns matching files or directories to include. If excludeFiles is not set, the files matching includeFiles will be the files mounted.
The glob patterns are matched to the filenames starting from the source root, they should have Unix styled slashes even on Windows, / matches the mount root and ** can be used as a super-asterisk to match recursively down all directories, e.g /posts/**.jpg.
The search is case-insensitive.
excludeFiles (string or slice)
One or more glob patterns matching files to exclude.