🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

vue-multiple-cli

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-multiple-cli

create a multiple page app with vue

Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
7
Maintainers
1
Weekly downloads
 
Created
Source

a simple cli for vue multiple page app

Installation

$ npm install vue-multiple-cli -g
# OR
$ yarn global add vue-multiple-cli

Create a project:

$ vum create my-project

Create a page template:

$ vum page my-page

page template

all the template: https://github.com/zhangchao828/vum-page-boilerplate.git

you can also create 'template' directory in you project root,then create some page template in the directory

but all the template name must be start with 'page-'

update project config

$ vum update

vue.config.js

//default options
module.exports={
  page:['example'],
  port:3000,
  sourceMap: true,
  //http-proxy-middleware
  proxy: {},
  publicPath: '../',
  //px2rem:{ remUnit: 37.5 }
  px2rem: null
}

webpack.config.js

you can create a webpack.config.js to merge the default webpack config

//webpack.config.js
module.exports=function(defaultWebpackConfig,NODE_ENV){
  //NODE_ENV is 'production' or 'development'
  return {
    //you webpack config
  }
}

FAQs

Package last updated on 08 Aug 2018

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