Skip to content

Adding support for absolute path for source[].src#2

Open
lk77 wants to merge 1 commit into
devrafalko:masterfrom
lk77:patch-1
Open

Adding support for absolute path for source[].src#2
lk77 wants to merge 1 commit into
devrafalko:masterfrom
lk77:patch-1

Conversation

@lk77
Copy link
Copy Markdown

@lk77 lk77 commented Dec 6, 2022

Hello,

i'm encountering an issue in my tests due to karma-html,

i have the following warning :

06 12 2022 16:47:24.169:WARN [filelist]: Pattern "/my_absolute_source_path/my_absolute_dist_path/index.html" does not match any file.

it's due to a path.join inside index.js, which does not allow absolute path.

this PR wrap the path.join in a !src.startsWith('/') check to prevent this.

thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant