From e1c2873907260e4c695a56104c7d8f0d3de8b709 Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Mon, 23 Jan 2023 16:43:00 -0600 Subject: [PATCH] Fix for image pipeline on Windows --- eleventy.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eleventy.config.js b/eleventy.config.js index f23785d..5399ef0 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -48,8 +48,9 @@ module.exports = function(eleventyConfig) { // https://www.11ty.dev/docs/plugins/image/ eleventyConfig.addPlugin(eleventyConfig => { function relativeToInputPath(inputPath, relativeFilePath) { - let split = inputPath.split(path.sep); + let split = inputPath.split("/"); split.pop(); + return path.resolve(split.join(path.sep), relativeFilePath); }