1.0.5 • Published 6 years ago
@juexro/multi-cli v1.0.5
# install dependencies
yarn install
# serve with hot reload at localhost:9001
yarn run dev
# build for production with minification
yarn run build
You can choose vue or react for platform.
development.js
const {DevelopmentRunner} = require('@juexro/multi-cli')
new DevelopmentRunner({
mode: process.env.NODE_ENV || 'development',
platform: 'vue',
envs: {
APP_NAME: 'multi-cli',
API: '',
VERSION: '4.3.0'
},
entry: {
main: ['src/vue/main.js']
},
pages: [
{
template: 'src/vue/index.html',
filename: 'index.html',
chunks: ['main'],
title: 'index'
}
],
port: 9001,
proxyTable: {
'/proxy': {
target: '',
changeOrigin: true
}
}
}).execute()