美文网首页
用vue-cli

用vue-cli

作者: 727上上上 | 来源:发表于2018-01-09 16:07 被阅读0次
npm init  初始化创建一个package.json

cnpm install vue-cli
vue init webpack .    注意后面有个点

? Generate project in current directory? Yes
  This will install Vue 2.x version of the template.

  For Vue 1.x use: vue init webpack#1.0

? Project name resumer
? Project description A Vue.js project
? Author ss
? Vue build standalone
? Install vue-router? Yes
? Use ESLint to lint your code? Yes
? Pick an ESLint preset Standard
? Setup unit tests with Karma + Mocha? Yes
? Setup e2e tests with Nightwatch? No

   vue-cli · Generated "resumer".


> npm i
> npm run dev

相关文章

网友评论

      本文标题:用vue-cli

      本文链接:https://www.haomeiwen.com/subject/xezrnxtx.html