-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Default mode to development? #1327
Copy link
Copy link
Closed
Description
- Operating System: macOS 10.13.3
- Node Version: 8.9.4
- NPM Version: 5.7.1
- webpack Version: 4.0.1
- webpack-dev-server Version: 3.1.0
- This is a bug
- This is a modification request
Expected Behavior
webpack-dev-server should default mode to "development", since that will be the developer's intention in the vast majority of cases.
Actual Behavior
Currently, mode does not have a default, which causes webpack to default it to "production" and emit a warning.
For Bugs; How can we reproduce the behavior?
For Features; What is the motivation and/or use-case for the feature?
It's understandable for webpack itself to default to production settings if a mode isn't explicitly specified, but since webpack-dev-server is intended only for use in development, it seems reasonable to default to development settings unless the user explicitly overrides them.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels