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

clarify variables available inside the .js files in README.md #76

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wbern
Copy link

@wbern wbern commented Aug 16, 2019

No description provided.

@wbern wbern changed the title clarify variables available inside the .js files clarify variables available inside the .js files in README.md Aug 16, 2019
Add how to require() with context
@wbern
Copy link
Author

wbern commented Aug 16, 2019

Added a neat hack as well.

@Subterrane
Copy link

I had to use path.resolve instead of path.join in the context hack to get the absolute path. I'm not sure why the relative path didn't work, it appears to be correct.

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.

2 participants