快速开始

安装

安装 Dvan 到你项目中为本地开发依赖.

cd your-project
yarn add vue
yarn add dvan@next --dev

⚠️

2.0.0-alpha.17 需要自行安装 vue.

package.json中添加两条脚本

{
  "scripts": {
    "dev": "dvan dev",
    "build": "dvan build"
  },
  "denpendencies": {
    "vue": "^2"
  },
  "devDenpendencies": {
    "dvan": "@next"
  }
}

即可启动开发模式

yarn dev
# default is http://localhost:4000

构建你的应用

yarn build