vue学习篇

vue新建项目

安骤

  • vue init webpack project-name(项目名字);
  • ? Project description (A Vue.js project) vue-cli新建项目(项目描述);
  • ? Author (XXXX [email protected]) ;[email protected](项目作者);
  • ? Vue build
    ❯ Runtime + Compiler: recommended for most users
    Runtime-only: about 6KB lighter min+gzip, but templates (or any Vue-specific HTML) are ONLY allowed in .vue files - render functions are required elsewhere
    这里选择Runtime + Compiler: recommended for most users;
  • ? Install vue-router? (Y/n) y 是否使用vue-router;
  • ? Use ESLint to lint your code? (Y/n) y 是否使用ESLint;
  • ? Pick an ESLint preset (Use arrow keys)
    ❯ Standard (https://github.com/feross/standard)
    Airbnb (https://github.com/airbnb/javascript) none (configure it yourself) 这里选择Standard (https://github.com/feross/standard)
  • ? Setup unit tests with Karma + Mocha? (Y/n) n 是否需要单元测试;
  • Setup e2e tests with Nightwatch? (Y/n) n是否需要单元测试;
  • cd project-name(项目目录);
    vue学习篇
    vue学习篇

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
  • 2021-11-29
  • 2021-08-13
  • 2021-11-09
  • 2021-12-11
猜你喜欢
  • 2022-02-20
  • 2021-08-15
  • 2021-05-15
  • 2021-11-18
  • 2021-12-29
  • 2021-06-07
  • 2022-12-23
相关资源
相似解决方案