title: How to use CDN in vue cli?
body: <p>I am not familiar with packing frontend projects. When I was writing frontend, we just used JQuery. So the problem is now I have a project created by vue-cli and packed by webpack. </p>
  
  <p>But as I don't want to load libraries from my local server but from remote CDN. How should I change the <code>yarn add</code> dependencies into CDN based form during <code>yarn build</code>? What is the correct way to do this kind of packing?</p>
  
  <p>I've searched a lot but cannot find a good solution, some may suggest adding all CDN in the head section. But that's difficult to manage.</p>