Skip to content

__dirname is not the true relative path in Webpack - #9

Open
vincenting wants to merge 1 commit into
wilsonlewis:masterfrom
vincenting:master
Open

__dirname is not the true relative path in Webpack#9
vincenting wants to merge 1 commit into
wilsonlewis:masterfrom
vincenting:master

Conversation

@vincenting

Copy link
Copy Markdown

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.

1 participant