From daab309a7fada5e86f45ee8860188b625ce17756 Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Wed, 6 Nov 2024 14:31:07 +0000 Subject: [PATCH] Fix Nunjucks search paths to correctly add input path --- lib/nunjucks.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/nunjucks.js b/lib/nunjucks.js index 7cc30e5c..b6cd15b7 100644 --- a/lib/nunjucks.js +++ b/lib/nunjucks.js @@ -29,9 +29,11 @@ module.exports = (eleventyConfig) => { resolveNpmModule('@x-govuk/govuk-prototype-components'), ...(includes ? [path.join(input, includes)] : []), ...(layouts ? [path.join(input, layouts)] : []), - ...input + input ] + console.log(searchPaths) + /** * Set default options, but respect `nunjucksEnvironmentOptions` * @see {@link https://www.11ty.dev/docs/languages/nunjucks/#optional-use-your-nunjucks-environment-options}