# vue-mpa

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

Latest version **0.2.6** (published 2017-09-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-mpa
pnpm add vue-mpa
yarn add vue-mpa
bun add vue-mpa
```

Provides the command `vue-mpa-init`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.6 |
| Published | 2017-09-11 |
| First published | 2017-09-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | kit |
| Maintainers | kitwang |
| Keywords | vue, mpa, webpack2, template |

## Links

- npm: https://www.npmjs.com/package/vue-mpa
- Repository: https://github.com/kitwon/vue-mpa
- Homepage: https://github.com/kitwon/vue-mpa#readme
- Issues: https://github.com/kitwon/vue-mpa/issues
- npm.io page: https://npm.io/package/vue-mpa

## Dependencies (1)

- [vue-cli](https://npm.io/package/vue-cli.md) ^2.8.1

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.2.6 (latest) — 2017-09-11
- 0.2.5 — 2017-09-11
- 0.2.4 — 2017-09-11
- 0.2.3 — 2017-09-11
- 0.2.1 — 2017-09-11
- 0.2.0 — 2017-09-09
- 0.1.2 — 2017-09-09
- 0.1.1 — 2017-09-07
- 0.1.0 — 2017-09-07

## README

# vue-mpa-boilerplate

> A Vue MPA boilerplate extend extend from [vuejs-template/webpack](https://github.com/vuejs-templates/webpack)


# Useage
use it with `vue-cli` (suggest)
```bash
$ npm install vue-cli -g
$ vue init kitwon/vue-mpa your-project-name
```

or use global command
```bash
$ 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](http://facebook.github.io/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](http://expressjs.com/en/guide/routing.html), you can get the assets file in memory fs, such as
```javascript
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)
  })
})
```

---
_Source: https://npm.io/package/vue-mpa · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
