2.0.0 • Published 8 years ago
framework7-template-vue-webpack v2.0.0
Framework7 Vue + Webpack App Template
A full-featured Framework7 Vue with Webpack setup with hot-reload & css extraction. Based on Vue Webpack Boilerplate
Usage
1. Download this repository
git clone https://github.com/framework7io/framework7-template-vue-webpack my-appRepository will be downloaded into my-app/ folder
2. Instal dependencies
Go to the downloaded repository folder and run:
npm installThis will download latest version of Framework7, Framework7-Vue, Vue and required icon fonts (to /src/fonts/)
3. Run the app
npm run devApp will be opened in browser at http://localhost:8080/
4. Build app for production
npm run buildThe output will be at www/ folder
Use with cordova
Just put the contents of www folder in your cordova's project root www folder
One command install
git clone https://github.com/framework7io/framework7-template-vue-webpack my-app &&
cd my-app &&
npm install &&
npm run devBuild Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run buildProject Structure
src/assets- folder with static assets (images)src/components- folder with custom.vuecomponentssrc/css- put custom app CSS styles here. Don't forget to import them inmain.jssrc/pages- app.vuepagessrc/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
2.0.0
8 years ago