前言
相關文檔:
- vue-cli 項目,打包後js,css,img靜態資源找不到:https://www.jianshu.com/p/9a4690f5bdce
- 生產環境發佈踩坑:https://blog.csdn.net/u013025674/article/details/100707435
轉載地址:https://www.freesion.com/article/153566540/
步驟:
- config/index.js添加內容
ps:此處的配置與轉載內容的不一樣。前兩處多了項目名稱,第三處結尾多了斜槓
- router/index.js添加內容
- index.html添加內容
補充
nginx發佈vue項目,刷新頁面會404:
https://www.jianshu.com/p/ca74eab7c33a