'use strict' const merge = require('webpack-merge') const prodEnv = require('./prod.env') //是否开发状态 const isDev = true; //开发API地址 const devAdrress='"http://weberp.xlyprint.cn/xlyReport"'; // const devAdrress='"http://127.0.0.1:8080/xlyReport"'; //正式打包API地址 const ipAdrress='"http://"+location.host+"/xlyReport"'; module.exports = merge(prodEnv, { NODE_ENV: '"development"', BASE_API: isDev?devAdrress:ipAdrress, // BASE_API: '"http://weberp.xlyprint.cn/xlyReport"', // API_WS: '"ws://127.0.0.1:8080/api/websocket"' })