Vue Page Router
Nuxt-inspired route management
Given:
router.js
pages/
index.vue
example.vue
help.vue
about.vue
router.js Before:
Vue
router.js After:
Getting Started
npm install --save vue-page-router
In the same directory as package.json, make a .babelrc config file with these contents:
"plugins": "wildcard" "exts": "js" "es6" "es" "jsx" "vue"
Dev Setup
-
Clone from GitHub repo (https://github.com/sirberus/vue-page-router)
-
In /example/, open a terminal, npm install, and npm run serve