0.2.6 • Published 7 years ago

vue-mpa v0.2.6

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

vue-mpa-boilerplate

A Vue MPA boilerplate extend extend from vuejs-template/webpack

Useage

use it with vue-cli (suggest)

$ npm install vue-cli -g
$ vue init kitwon/vue-mpa your-project-name

or use global command

$ npm install vue-mpa -g
$ vue-mpa-init your-project-name

What's different

  1. generate multiple page aplication not single page, has all vue-cli/webpack functions
  2. unit test use jest to instead mocha

Notice

  1. due to use the multiple entry, so the middle ware connect-history-api-fallback will break.
  2. if you want to set dev server route, use the express router, you can get the assets file in memory fs, such as
app.get('/', (req, res, next) => {
  // filepath on the same path as dev file 
  compiler.outputFileSystem.readFile(filepath, (err, result) => {
    if (err) {
      console.log(err)
      next(err)
    }

    res.set('content-type', 'text/html')
    res.send(result)
  })
})
0.2.6

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago