-
-
Couldn't load subscription status.
- Fork 27.1k
Made webpack respect NODE_PATH environment variable #476
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -65,6 +65,9 @@ module.exports = { | |
| publicPath: '/' | ||
| }, | ||
| resolve: { | ||
| // This allows you to set a root for where webpack should look for modules. | ||
| // This enables you to use absolute imports from the root. | ||
| root: path.resolve(env['process.env.NODE_PATH']), | ||
|
||
| // These are the reasonable defaults supported by the Node ecosystem. | ||
| extensions: ['.js', '.json', ''], | ||
| alias: { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
env.jsis only used for variables injected into the app.Doesn't seem like it's useful to expose it to the path.