XMLHttpRequest cannot load http://localhost:8080/dist/06854fc8988da94501a9.hot-update.json. No'Access-Control-Allow-Origin'header is present on the requested resource. Origin'http://localhost' is therefore not allowed access.

 dev-server.js:37 [HMR] Update failed: Error: Manifest request to http://localhost:8080/dist/06854fc8988da94501a9.hot-update.json timed out. at XMLHttpRequest.request.onreadystatechange (http://localhost:8080/dist/main.js:38:22) 

 output: filename:'[name].js'{/ / not configurable as absolute path, this is the wrong configuration of //publicPath: "http://localhost:8080/dist/" / / this is the right configuration, publicPath: "/dist/": build, path, AMD, UMD / / consists of commonjs, VaR and other support for libraryTarget:'var' 

p> "after repeated test, webpack dev server publicPath will inject to the other domain, if you use absolute address configuration, will appear the mistake. What

needs to pay special attention to is that webpack dev server is just the opposite of webpack-hot-middleware, and webpack-hot-middleware must use absolute address.

above, the solution to the failure of Webpack dev server hot load is the whole content that Xiaobian shared to you. I hope to give you a reference, and I hope you will support the script home more.

This paper fixed link:http://www.script-home.com/solutions-to-the-failure-of-webpack-dev-server-thermal-loading.html | Script Home | +Copy Link

Article reprint please specify:Solutions to the failure of Webpack dev server thermal loading | Script Home

You may also be interested in these articles!