webpack request file path proxy

 

 

In development mode, all requests to access pages go to the root path, because all written ./images and index are in the root, so it is http://localhost:8080/images/abc.jpg

 

 The actual file address should be http://localhost:8080/static/images/abc.jpg 

 

So it means configuring /images means intercepting this kind of request
pathRewrite means changing /images to /static/images

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325254867&siteId=291194637