Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-mpa

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-mpa

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

  • 0.2.5
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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)
  })
})

FAQs

Package last updated on 11 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc