Vue-cli3 read the official document recording some learning

I had always thought that vue @ cli3 tool is to create a template, read the official document useful to know that so many configure my long exposure

Prefetch lazy loading configuration

Lazy loading believe we are all aware, the use of Import () syntax can be loaded when needed, but read the official document Prefetch a holiday and found that things are not so simple to imagine.

Documents written very clearly, Prefetch is in his spare time not in a hurry to load some files, and import default Prefetch is added, which means you may not use the import results you want (for example, a user click on a just load the trigger button, or never loaded, so you can save traffic),
in order to verify wrote a small test use cases, see the network finally found true even if you are lazy loading, but other procedures idle, and he will advance load the file you may need.
How close it, the document also said very clearly

Guess you like

Origin www.cnblogs.com/wzcsqaws/p/11302226.html