I want to customize the port on which the output application runs,instead of displaying the output information of "webpack dev server" by default. Who can help me or give me some suggestions
Asked
Active
Viewed 35 times
0

Mike Lischke
- 48,925
- 16
- 119
- 181

R2c
- 1
- 1
-
Does this answer your question? [Is there a way to let webpack dev server use another port?](https://stackoverflow.com/questions/49402675/is-there-a-way-to-let-webpack-dev-server-use-another-port) – Rashomon Aug 12 '22 at 08:56
-
@Rashomon Maybe I didn't describe the clearing. I don't want the console to output the information of webpack-dev-server initialization. I want to customize where the app runs on the console – R2c Aug 12 '22 at 09:02
-
Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Aug 12 '22 at 13:34
1 Answers
0
You can add config to webpack.config.js
infrastructureLogging: {
level: 'none',
}
Reference: https://webpack.js.org/configuration/other-options/#level

Konstantinos Gallis
- 956
- 6
- 11