代码拉取完成,页面将自动刷新
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;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。