39

面试官:请简述一下vue-cli命令行工具,你能自己手写一个吗?

 5 years ago
source link: https://juejin.im/post/5b4168bf6fb9a04f83462f6c
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
还记得我们在写vue 项目的时候用脚手架vue-init的主要作用是根据指定模板生成项目原型嘛?那么vue-init怎么实现的呢? 其实就是在vue-cli package.json中增加下面的代码 { "bin": { "vue": "bin/v

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK