开发环境

使用source map

  1. devtool: 'inline-source-map', //不要用于生产环境

当产生报错会有具体 提示
image.png