The vue component library is loaded on demand, is the entire component library packaged or only the components that are packaged?

there are two schemes for vue packaging optimization:
1. Load components on demand, packaged in blocks instead of in a js file
2. Cdn, a component library that does not need to be changed, is introduced to configure webpack, not to package these files.
these two schemes shorten the packing time, reduce the size of the packaged files, and greatly improve the performance.
but what I don"t quite understand is the conflict between the two schemes. Is it necessary to use cdn introduction to load on demand components? In other words, I load it on demand and pack it. Do I package the entire component library or just the components I use? If it is only packaged components, there is no need to introduce cdn, right?

Feb.27,2021

the execution of packaging commands will still be packaged into static files. Demand loading is only where the code is executed to execute the corresponding component code. If all components are not loaded on the home page on demand,
CDN is mainly for static resource content distribution, such as CSS and image, because sometimes the components are loaded on demand but the file is relatively large. But if CDN is done in the cache, you can request resources nearby to speed up the access speed

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2be15-2b31a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2be15-2b31a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?