Skip to content

Commit

Permalink
fix: bugfix with subdirectories in css
Browse files Browse the repository at this point in the history
  • Loading branch information
learosema committed Sep 26, 2024
1 parent 2d50970 commit 28107d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}");`);
}
}

Expand Down

0 comments on commit 28107d4

Please sign in to comment.