A full-featured Framework7 Vue with Webpack setup with hot-reload & css extraction. Based on Vue Webpack Boilerplate
$ git clone https://github.com/asperduti/framework7-vuejs-cordova-webpack.git
Go to the app folder and run:
$ cd framework7-vuejs-cordova-webpack
$ npm install
This will download latest version of Framework7, Framework7-Vue, Vue, Webpack
The template is prepared to load the cordova.js for browsers. First you need to add the browser platform
$ cordova platform add browser
$ npm run dev
App will be opened in browser at http://localhost:8080/
You need to add the android platform
$ cordova platform add android
$ npm run cordova-run-android
npm run build
npm run cordova-build-android
git clone https://github.com/asperduti/framework7-vuejs-cordova-webpack.git &&
cd framework7-vuejs-cordova-webpack &&
npm install &&
cordova platform add browser &&
npm run dev
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
src/assets
- folder with static assets (images)src/components
- folder with custom.vue
componentssrc/css
- put custom app CSS styles here. Don't forget to import them inmain.js
src/pages
- app.vue
pagessrc/main.js
- main app file where you include/import all required libs and init appsrc/routes.js
- app routessrc/app.vue
- main app structure/component
This template is always being improved by its users, so sometimes one may need to upgrade. Ensure there's an upstream remote
If git remote -v doesn't have an upstream listed, you can do the following to add it:
$ git remote add upstream https://github.com/asperduti/framework7-vuejs-cordova-webpack.git
Pull in the latest changes
$ git pull upstream master
There may be merge conflicts, so be sure to fix the files that git lists if they occur. That's it!