output.path
打包后文件在硬盘中的存储位置。
例如:path: path.join(__dirname, "build/")
==输出为=》
localdisk/path-to-your-project/build/
output.publicPath
打包后浏览器访问服务时的 url 路径(中通用的一部分)。
例如:publicPath: /assets/
==输出为=》
http://server/assets/
publicPath可用于改css中资源请求路径。
参考:https://stackoverflow.com/questions/28846814/what-does-publicpath-in-webpack-do
https://doc.webpack-china.org/concepts/output/
如果我理解错了,恳请指出 = =||