项目根目录下
cordova create CordovaProject io.cordova.hellocordova CordovaApp
CordovaProject 为项目名
io.cordova.hellocordova 为反向域名/androidmainfest中package名
进入cordova项目下
cordova platform add android
vue init webpack Vue-Project
Vue-Project 为vue项目名
Project name vue
? Project description A Vue.js project
? Author CC
? Vue build standalone
? Install vue-router? No
? Use ESLint to lint your code? No
? 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) npm
最后一步若卡住则需要fanqiang或自己进vue项目cnpm install
修改一下配置文件 config>index.js
引入cordova.js
向vue项目