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

__dirname is not the true relative path in Webpack #9

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

Conversation

vincenting
Copy link

Hi, now we use the __dirname, which is the path of the current file.
In fact, we need to use the true path of the file which including the code to exec this function. So, I use the stack of error to get that file.

@vincenting vincenting changed the title fix: use the true filed call this func rather than __dirname __dirname is not the true relative path in Webpack Oct 5, 2018
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.

None yet

1 participant