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

Disabling publicDir breaks plugin #118

Open
Santana1053 opened this issue Feb 13, 2024 · 1 comment
Open

Disabling publicDir breaks plugin #118

Santana1053 opened this issue Feb 13, 2024 · 1 comment

Comments

@Santana1053
Copy link

Steps to reproduce

I was having getting this plugin to work because I would get an error saying Error: ENOENT: no such file or directory, open '<path>', and when I inspected the file path I noticed that the output directory was in the path twice. I did some debugging and I discovered the issue is here, it tries to get the relativePath of the file name based off the publicDir, but in my case I have my publicDir disabled. So the path it was building turned out to be <projectRoot>/<outDir>/<outDir>/<fileName>.

What is expected?

Obtain the relative path of the file without relying on the publicDir.

What is actually happening?

Disabling publicDir causes outDir to appear twice in file path.

System Info

No response

Any additional comments?

No response

@ErKeLost
Copy link
Member

Thank you for your question. I'll check it out. The problem will be fixed later.

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

No branches or pull requests

2 participants