【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
相關文章
相關標籤/搜索