Fast building this project use Vue 2.0 + Webpack +
vue-loader.Project address:https://github.com/zhangwang9li/vue-simple
If there is a new requirement, please ask at Github
Use templates need to be installed vue-cli.
$ npm install -g vue-cli
$ vue init zhangwang9li/vue-simple my-project
Not recommended for use "unit" "e2e" "test"
$ cd my-project
$ npm install
$ npm run devapi ----Interface configuration file
assets ----Built-in resource CSS resource file
pages ----Page resource library
components ----Reuse more than 2 component libraries
vuex ----vuex.
App.vue ----Page entry
Login.vue ----Login page
main.js ---Vue starts the main JS
mk.js ----Internal operation JS
routes.js ----Vue page routing configuration JS
static ----JS files that have been compiled by third parties
-
npm run dev: Webpack +vue-loaderwith proper config for source maps & hot-reload. -
npm run build: build with HTML/CSS/JS minification.