【vue-cli踩坑】Failed to load resource: net::ERR_FILE_NOT_FOUND或者run build以后dist文件下的index.html不显示内容

经过vue-cli建立的项目html npm run dev 运行开发环境能够看到效果,vue 可是 npm run dbulid 以后,经过产生的dist文件下的index.html直接打开没显示,看不到效果,报错以下:webpack 在 webpack.prod.conf.js 中的 output 添加参数publicPath:’./’web 具体代码:vue-cli 在 webpack.pr
相关文章
相关标签/搜索