1. 程式人生 > >webpack程式碼部署index.html無內容顯示

webpack程式碼部署index.html無內容顯示

 Tip: built files are meant to be served over an HTTP server.

  Opening index.html over file:// won't work.

解決:更改config/index.js 中的引數

assetsPublicPath:'./',