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
module.exports={
page:['example'],
port:3000,
sourceMap: true,
proxy: {},
publicPath: '../',
px2rem: null
}
webpack.config.js
you can create a webpack.config.js to merge the default webpack config
module.exports=function(defaultWebpackConfig,NODE_ENV){
return {
}
}