解决 Automatic publicPath is not supported in this browser 错误

问题描述:webpack 打包出现 
Error: Automatic publicPath is not supported in this browser

解决方法:
在webpack.config.js文件中添加

module.exports = 
 {
     output: {
         publicPath: './'
     }
 }

publicPath 属性,指的是打包后公共资源的一个路径,默认路径不是./,所以打包的时候会出现找不到路径的问题,具体属性的意义,可以查询webpack配置文件官方文档。