原因是webpack 5.59.1版本要求 devtool 的值必须以 inline 或 hidden 或eval 开头,故devtool的值改成eval-cheap-module-source-map即可