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

feat: add WEBPACK_SERVE environment variable #2027

Merged
merged 6 commits into from
Nov 4, 2020
Merged

Conversation

rishabh3112
Copy link
Member

@rishabh3112 rishabh3112 commented Nov 3, 2020

What kind of change does this PR introduce?
Add WEBPACK_SERVE variable in environment and in main process if webpack serve is used.

Did you add tests for your changes?
Yes
If relevant, did you update the documentation?
No
Summary
Fixes #1973

Does this PR introduce a breaking change?
Yes,

  1. Exposing WEBPACK_SERVE variable which was earlier WEBPACK_DEV_SERVER when dev server was not integrated into CLI.
  2. New variable WEBPACK_SERVE is now accessable only through env argument supplied to webpack configuration of type function.

Other information
/cc @evilebottnawi

Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/cc @webpack/cli-team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The WEBPACK_DEV_SERVER environment variable is not set when running "webpack serve"
5 participants