https://github.com/thang2162/vuecordovawebpacktemplate
Cordova App Template that implements VueJS, Vuex and Vue Router using Webpack.
https://github.com/thang2162/vuecordovawebpacktemplate
Last synced: 2 months ago
JSON representation
Cordova App Template that implements VueJS, Vuex and Vue Router using Webpack.
- Host: GitHub
- URL: https://github.com/thang2162/vuecordovawebpacktemplate
- Owner: thang2162
- License: unlicense
- Created: 2018-12-28T21:51:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T15:47:23.000Z (over 2 years ago)
- Last Synced: 2025-01-14T02:12:11.331Z (4 months ago)
- Language: CSS
- Homepage:
- Size: 11 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VueCordovaWebpackTemplate
##How to use:##
1. run: npm install
2. add platforms:
cordova platform add android
cordova platform add ios3. build and run:
npm run build && cordova run android
npm run build && cordova build android
npm run build && cordova run ios --buildFlag='-UseModernBuildSystem=0'
npm run build && cordova build ios --buildFlag='-UseModernBuildSystem=0'##To create a project using the vue and cordova cli do the following:##
1. Create Vue project using Cli via command ('vue create my-project') or ui ('vue ui')
2. Create Cordova Project ('cordova create MyApp')
3. copy contents of folder containing cordova project into vue Project
4. Create a vue.config.js file and put into root of vue Project
5. Add the following to vue.config.js:
const path = require("path");
module.exports = {
baseUrl: '',
outputDir: 'www'
};6. add '' to index.html in public folder
7. Use any of the following build commands:
npm run build && cordova run android
npm run build && cordova build android
npm run build && cordova run ios --buildFlag='-UseModernBuildSystem=0'
npm run build && cordova build ios --buildFlag='-UseModernBuildSystem=0'