Node environment variables on webpack dev middleware options #1385

Closed
opened 2025-08-09 17:19:56 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @mattwcole on 9/14/2016

It could be useful to be able to set environment variables on WebpackDevMiddlewareOptions. E.g. currently there is no way to avoid NODE_ENV=production when the environment is anything other than "development". Example implementation here can be turned into a PR if desired.

*Originally created by @mattwcole on 9/14/2016* It could be useful to be able to set environment variables on `WebpackDevMiddlewareOptions`. E.g. currently there is no way to avoid NODE_ENV=production when the environment is anything other than "development". Example implementation [here](https://github.com/mattwcole/JavaScriptServices/commit/2f588dfd25462f797809e89e2a5da11f7e39009a) can be turned into a PR if desired.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1385
No description provided.