添加 server 启动

This commit is contained in:
sin
2019-03-26 13:18:53 +08:00
parent 2d978d5168
commit 30c2379a7c
9 changed files with 195 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
//
// 粉笔:
// 输出不同颜色的提示信息
const chalk = require('chalk');
module.exports = {
chalkError: chalk.red,
chalkSuccess: chalk.green,
chalkWarning: chalk.yellow,
chalkProcessing: chalk.blue,
};

View File

@@ -0,0 +1,10 @@
module.exports = {
'/admin-api -> http://180.167.213.26:18083/': {
changeOrigin: true,
pathRewrite: {},
},
'/server/api -> https://preview.pro.ant.design/': {
changeOrigin: true,
pathRewrite: { '^/server': '' },
},
};