罗欣大B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

123 lines
3.8 KiB

// see http://vuejs-templates.github.io/webpack for documentation.
var path = require('path')
var ip = 'http://10.1.5.46:10000';
// var ip = 'http://10.1.5.47:10000';
// var ip = 'http://8.147.104.17:10000';
// var ip = 'http://10.1.3.225';
// var ip = 'http://10.1.2.150:8888'; //研发本地
// var ip = 'http://10.1.2.221:8088'; //研发本地
var ip2 = 'http://10.1.30.173:18101'; // 徐鹏
var ip3 = 'http://10.1.29.42:18101'; // 谢元强
var ip5 = 'http://10.1.30.75:18101'; // 郝宗阳
var homeIp = 'http://10.1.31.123:18101'
var ompIp = 'http://10.1.2.221'; // 研发环境
module.exports = {
build: {
env: require('./prod.env'),
index: path.resolve(__dirname, '../itax-base/index.html'),
assetsRoot: path.resolve(__dirname, '../itax-base'),
assetsSubDirectory: 'static',
assetsPublicPath: '/',
productionSourceMap: false,
// Gzip off by default as many popular static hosts such as
// Surge or Netlify already gzip all static assets for you.
// Before setting to `true`, make sure to:
// npm install --save-dev compression-webpack-plugin
productionGzip: false,
productionGzipExtensions: ['js', 'css'],
// Run the build command with an extra argument to
// View the bundle analyzer report after build finishes:
// `npm run build --report`
// Set to `true` or `false` to always turn it on or off
bundleAnalyzerReport: process.env.npm_config_report
},
dev: {
env: require('./dev.env'),
port: 9001,
autoOpenBrowser: true,
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {
'/itax-admin': {
target: homeIp + '/itax-admin',
changeOrigin: true,
pathRewrite: {
'^/itax-admin': '/'
}
},
'/userApi/': {
target: 'http://10.1.5.49:3001', // 测试环境
changeOrigin: true,
pathRewrite: {
'^/userApi/': '/'
}
},
'/itax-omp': {
target: ompIp + '/itax-omp',
changeOrigin: true,
pathRewrite: {
'^/itax-omp': '/'
}
},
'/api-gateway': { // 网关
target: 'http://10.1.3.223/api-gateway/',
changeOrigin: true,
pathRewrite: {
'^/api-gateway': '/'
}
},
'/wkt': {
target: 'http://10.1.1.109:8083/itax-bench', // 测试环境
changeOrigin: true,
pathRewrite: {
'^/wkt': '/'
}
},
'/itaxAdmin': {
// target: 'http://10.1.2.221/itaxAdmin', // 221环境
// target: 'http://10.1.28.206:18101/itaxAdmin', // 48环境
// target: 'http://10.1.2.187/itaxAdmin', // 测试环境(大B整合后的环境)
target: ip + '/itaxAdmin', // 测试环境(大B整合后的环境)
// target: ip5 + '/itax-admin', // 研发本地
changeOrigin: true,
pathRewrite: {
'^/itaxAdmin': '/'
}
},
'/socket': {
target: 'ws://10.1.2.48:8081', //后端目标接口地址
ws: true, //开启ws, 如果是http代理此处可以不用设置
changeOrigin: true, //是否允许跨域
pathRewrite: {
'^/socket': '/', //重写,
},
},
// 登录
'/itax': {
// target: 'http://10.1.2.221/itax', // 221环境
// target: 'http://10.1.28.206:18100/itax', // 48环境
target: ip + '/itax', // 测试环境(大B整合后的环境)
changeOrigin: true,
pathRewrite: {
'^/itax': '/'
}
},
},
// CSS Sourcemaps off by default because relative paths are "buggy"
// with this option, according to the CSS-Loader README
// (https://github.com/webpack/css-loader#sourcemaps)
// In our experience, they generally work as expected,
// just be aware of this issue when enabling this option.
cssSourceMap: false
}
}