Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lk77
Copy link

@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