1. Generate Cordova Project
See http://cordova.apache.org specifically
Global install Cordova
$ npm install-g Cordova
Create a project named MYAPP
$ cordova Create MyApp
The following diagram of the build directory:
2. Create a Vue project in the MyApp project
See https://cn.vuejs.org/v2/guide/installation.html specifically
Global Install VUE-CLI
$ npm Install--global vue-cli
Create a new project based on the Webpack template
$ vue init webpack MyApp (name can be the same as the project above)
To create a good catalog, see the following:
$ MyApp
$ npm Install
$ npm Run dev
3. Modify Vue Project Config/index.js file
4. To build the Vue project, after compiling and packaging generated code automatically run to the main directory under the WWW file
CD to Vue's MyApp directory, perform the NPM run build
5. Compile various platforms for Cordova
CD to the home directory, perform Cordova build IOS, Cordova build Android, and more.