webpack报错
webpack-cli版本: 4.10.0
// win+r打开命令行查看webpack版本
webpack -v
1. 报错1如下:
[webpack-cli] Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
- options has an unknown property 'contentBase'. These properties are valid:
object {
allowedHosts?, bonjour?, client?, compress?, devMiddleware?, headers?, historyApiFallback?, host?, hot?, http2?, https?, ipc?,