-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
add-missing-env-variable-in-webpack-config #1044
add-missing-env-variable-in-webpack-config #1044
Conversation
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.
This seems like a good fix; is there any way to provide a test to cover it?
Here you are, thanks for accepting the PR 👍 |
@ljharb Can you tell me when are you planning to release the |
@kamalbennani v0.9.0 was published. |
Following #938, I am facing a problem where my project is composed of a several applications and each them might define a "custom" webpack configuration which extends a common configuration which is defined in the root of the project.
A custom webpack configuration looks like so:
apps/app1/webpackConfig.js
Note that the common webpack configuration is responsible for determining which webpack configuration to load based on the application name.
So for instance, to run the
app1
, we execute the following command :The problem is that the 'env' variable is being ignored, So I can't do something like that:
apps/app1/.eslintrc
The solution is to grab the env from the settings and to pass it to the webpackConfig in the webpack resolver:
resolvers/webpack/index.js