vue 项目 build 之后dist文件下的index.html不显示内容,并且报 Failed to load resource: net::ERR_FILE_NOT_FOUND 错误解决方案

在项目根目录下创建 vue.config.js 文件,在里面配置
module.exports = {
publicPath: './'
}
本文详细介绍了如何在Vue项目中遇到build后的dist文件index.html加载失败,显示'Failed to load resource: net::ERR_FILE_NOT_FOUND'的问题,并通过创建vue.config.js并配置publicPath来修复这一问题的方法。
vue 项目 build 之后dist文件下的index.html不显示内容,并且报 Failed to load resource: net::ERR_FILE_NOT_FOUND 错误解决方案

在项目根目录下创建 vue.config.js 文件,在里面配置
module.exports = {
publicPath: './'
}
9162
8719
1248
2254

被折叠的 条评论
为什么被折叠?