快速创建Vue项目
安装@vuecli
1 | yarn global add @vue/cli |
创建项目
1 | vue create demo |
根据喜好配置,以下为我的设置
Manually select features
Babel,CSS Pre-processors,Linter/Formatter,Unit Testing
Lint and fix on commit
Jest
没有提及的为默认选项
使用codesandbox创建好的项目文件
进入 官网 接着创建一个vue项目,将项目导出来
运行
创建好vue项目文件后就可以开始本地预览了
1 | yarn serve |