How does vue make routing load the corresponding resources on demand

  node.js, question

clipboard.png
According to the on-demand loading method of the document API in, but when the current route is triggered, css/js of all other routes will be loaded in at one time. I don’t know what the problem is (the subject uses vue-cli scaffold given by the government)

clipboard.png

Css, you can limit its scope through the scoped attribute (single file component < style >). JS’s words are not clear why they were loaded. I just looked at my vue-router project. No, did you require or import in layout inside?