vue-mpa-boilerplate
A Vue 2.0 MPA boilerplate expand on vuejs-template/webpack
Documentation
Except the modules entries, this template is the same as vuejs-template/webpack, more features to view webpack template doc.
Useage
$ npm install vue-cli -g
$ vue init kitwon/vue-mpa your-project-name
$ cd your-project-name
$ npm install
$ npm run dev
npm run dev
command, visit http://localhost:8080/modules/index.html to develop.
switch to single page application
It's easy. Change the entry object in build/webpack.base.conf.js
// ...
//const entries = require('./get-entry').getEntry(resolve('src/modules/*/*.js'))
const entries = {
index: '' // your entry file path
}
// ...
But the more efficient way is use vue init webpack your-project-name
command