From 28107d4b04642ee9c45f89d6afdc924b8c63ce64 Mon Sep 17 00:00:00 2001 From: Lea Rosema Date: Thu, 26 Sep 2024 17:45:29 +0200 Subject: [PATCH] fix: bugfix with subdirectories in css --- src/css.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/css.js b/src/css.js index f4e69cd..5b7f860 100644 --- a/src/css.js +++ b/src/css.js @@ -23,12 +23,12 @@ export default (config) => { const matches = inputContent.matchAll(INCLUDE_REGEX); for (const [, file] of matches) { try { - const content = await (config.resolve || resolve)(config.dir.input, file); + const content = await (config.resolve || resolve)(config.dir.input, parsed.dir, file); includes.set(file, content); } catch (err) { console.error('error processing file:', file, err); // silently fail if there is no include - includes.set(file, `@import "${file}";`); + includes.set(file, `@import url("${file}");`); } }