在学习webpack中使用webpack-dev-server启动本地服务时遇到问题[webpack-cli] Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.,经检索发现是因为webpack-dev-server中contentBase被废弃了,新属性是static,修改web.config.js后运行成功。
devServer: {
// contentBase: path.resolve(__dirname, 'dist')
static: 'dist'
}