kitwon / vue-mpa

vue multiple page application boilerplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

⚠️ after run the 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 😅

About

vue multiple page application boilerplate


Languages

Language:JavaScript 88.9%Language:Vue 7.3%Language:HTML 3.6%Language:Shell 0.2%