Why using Vue CLI instead of the CDN package
Feb 11, 2021
First of all, I face this problem when I was trying to implement Vue.js as a frontend for my Django project. So I hope this will help people who are trying to create Django(backend) Vue.js(frontend) app.
If you are totally new to Vue.js, I recommend starting from using CDN, because it’s easy to implement so that you can learn by writing code. But the reason why I prefer to use Vue CLI is that there are many features you can use Vue.js provides, and CDN can’t do that.
Good features you can use in Vue CLI
- Single File Component(SFC)
- Hot Module Replacement(HMR)
- Router