vue-cli 脚手架总结
作者:
开车去环游世界 | 来源:发表于
2017-10-17 11:04 被阅读86次# 去到放项目的文件夹地址
xiexiaobin:~ xxb$ cd /Users/xxb/Documents/Season/Project/Vue
# 创建基于webpack模版的项目,名称为vue-demo
xiexiaobin:Vue xxb$ vue init webpack vue-demo
# 提示我有新版本
A newer version of vue-cli is available.
latest: 2.8.2
installed: 2.8.1
This will install Vue 2.x version of the template.
# 提示我如果需要使用webpack#1.0的话,创建时用这个命令
For Vue 1.x use: vue init webpack#1.0 vue-demo
# 填写了一些基础信息,根据你的需要选择
# 是否使用ESLint,标准选择了默认的Standard,不熟悉ESLint的话建议不启用或标准选择none
# 是否启动unit测试和e2e测试
? Project name vue-demo
? Project description This is a demo by season
? Author Season xxb
? Vue build standalone
? Install vue-router? Yes
? Use ESLint to lint your code? No
? Pick an ESLint preset Standard
? Setup unit tests with Karma + Mocha? No
? Setup e2e tests with Nightwatch? No
vue-cli · Generated "vue-demo".
To get started:
cd vue-demo
npm install
npm run dev
Documentation can be found at https://vuejs-templates.github.io/webpack
本文标题:vue-cli 脚手架总结
本文链接:https://www.haomeiwen.com/subject/ejjmhxtx.html
网友评论