解决 Automatic publicPath is not supported in this browser 错误
当webpack 打包出现
ERROR in Error: xxxx /******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser"); ^ Error: Automatic publicPath is not supported in this browser
解决方法:
在webpack.config.js文件中添加
module.exports =
{
output: {
publicPath: ‘./’
}
}
即可解决