vue2初始化项目
  Rzlnp0of1uWH 2023年11月02日 183 0

1. 安装vue-cli:

npm install -g @vue/cli
vue -V

# 仍需要用vue-cli 2.x版本语法(vue init),需下载一个桥接工具:
npm install -g @vue/cli-init

2. 初始化webpack项目:

$ yarn global add @vue/cli-init

$ vue init webpack music
  ...
  ? Vue build (Use arrow keys)
    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 
  ? Install vue-router? Yes
  ? Use ESLint to lint your code? Yes
  ? Pick an ESLint preset (Use arrow keys)
    > Standard (https://github.com/standard/standard)
    Airbnb (https://github.com/airbnb/javascript)
    none (configure it yourself)
  ? Set up unit tests No
  ? Setup e2e tests with Nightwatch? No
  ? Should we run `npm install` for you after the project has been created? (recommended) yarn
【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
  gYl4rku9YpWY   2024年05月17日   57   0   0 Vue
  f18CFixvrKz8   2024年05月20日   85   0   0 JavaScript
  fxrR9b8fJ5Wh   2024年05月17日   47   0   0 JavaScript
  onf2Mh1AWJAW   2024年05月17日   57   0   0 Vue
  3A8RnFxQCDqM   2024年05月17日   51   0   0 Vue
Rzlnp0of1uWH
作者其他文章 更多

2023-11-14

2023-11-13

2023-11-13

2023-11-13

2023-11-02

2023-11-02

2023-11-02

vue

2023-11-02

2023-11-02

2023-11-02