Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 857 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 857 Bytes

vue-webpack-cordova

Create a basic framework for Vue + Webpack + Cordova

A full-featured Webpack setup with hot-reload, lint-on-save, unit testing & css extraction.

This template only supports Vue 2.0

Usage

# we prefer the latest vue-cli, because this tempate requires vue-cli > 2.8.1,
# prior versions don't support `complete` function in meta.js
$ npm install vuejs/vue-cli -g
$ npm install yarn -g # use yarn manage nodejs packages
$ vue init xiaohui-zhangxh/vue-webpack-cordova my-project
$ cd my-project
$ yarn
$ npm run dev # run dev server
$ npm run build # build production files to cordova/www/
$ cd cordova && cordova emulate ios # open app in ios emulator

Fork It And Make Your Own

You can fork this repo to create your own boilerplate, and use it with vue-cli:

vue init username/repo my-project