Skip to content

从头构建一个Vue项目 #16

Open

Description

@easyli

安装webpack

npm install webpack -g 

查看版本

webpack -v

安装Vue.js

npm install -g vue-cli

查看版本

vue --version

创建Vue项目

vue init webpack es6

根据提示, 在命令行下输入和选择配置

安装 package.json 中模块

cd es6
npm install

运行项目

npm run dev 

运行后,浏览器打开 http://localhost:8080

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions