1 Star 1 Fork 2

Choerodon / choerodon-front-agile

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
config.js 1.25 KB
一键复制 编辑 原始数据 按行查看 历史
DouglasDong 提交于 2019-01-10 18:32 . [IMP] 修改 config.js 示例地址
process.env.NODE_ENV = 'development';
let env;
switch (process.env.NODE_ENV) {
case ('development'):
env = {
'process.env.AGILE_HOST': JSON.stringify(`${process.env.AGILE_HOST}` || 'http://minio.staging.saas.hand-china.com/agile-service/')
};
break;
case ('production'):
env = {
'process.env.AGILE_HOST': JSON.stringify(`${process.env.AGILE_HOST}` || 'http://minio.staging.saas.hand-china.com/agile-service/')
};
break;
default:
break;
}
const config = {
port: 9090,
output: './dist',
htmlTemplate: 'index.template.html',
devServerConfig: {},
webpackConfig(config) {
const webpack = require('./agile/node_modules/webpack');
config.plugins.push(new webpack.DefinePlugin(env));
return config;
},
entryName: 'index',
root: '/',
routes: null, //by default, routes use main in package.json
server: 'http://api.choerodon.example.com',
clientid: 'localhost',
titlename: 'Choerodon', //html title
favicon: 'favicon.ico', //page favicon
theme: { // less/sass modify vars
'primary-color': '#3F51B5',
},
dashboard: {
'agile': 'src/app/agile/dashboard/*',
},
};
module.exports = config;
1
https://gitee.com/choerodon/choerodon-front-agile.git
git@gitee.com:choerodon/choerodon-front-agile.git
choerodon
choerodon-front-agile
choerodon-front-agile
master

搜索帮助