123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- 'use strict'
- // Template version: 1.1.1
- // see http://vuejs-templates.github.io/webpack for documentation.
- const path = require('path')
- /*
- const servicePath = 'http://wyservice.gzbfdc.com:5008' //葛洲坝
- */
- //const servicePath = 'http://wy.ghhn.com' //葛洲坝
- // const servicePath = 'http://cms.wuyeface.com' //云环境
- //const servicePath = 'http://kolottest.laifung-gz.com.cn' //高乐测试
- //const servicePath = 'http://kolot.laifung-gz.com.cn' //高乐测试
- // const servicePath = 'http://wuye.enxiang.net:5906' //恩祥
- //const servicePath = 'http://wy.hkhc.com.cn' //香江新地址
- // const servicePath = 'https://pms.hajwy.com' //光大生产
- // const servicePath = 'http://wx.cqygwy.com' //渝高物业
- // const servicePath = 'http://10.1.200.16:6902' //漕河泾
- const servicePath = 'http://sys.chjpm.com:6902' //正弘
- module.exports = {
- project: "", //打包需要使用(sass-loader)
- build: {
- env: require('./prod.env'),
- index: path.resolve(__dirname, '../dist/index.html'),
- assetsRoot: path.resolve(__dirname, '../dist'),
- 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'),
- host: '172.18.0.110',
- port: process.env.PORT || 8800,
- autoOpenBrowser: true,
- assetsSubDirectory: 'static',
- assetsPublicPath: '/',
- proxyTable: {
- "/landcrm": {
- // target: 'http://cms.wuyeface.com/landcrm', //一碑云环境
- // target: 'http://huiyuntest.wuyeface.com/landcrm', //中通服测试
- // target: 'http://wyappcs.gzbfdc.com:5708/landcrm', // 葛洲坝测试接口
- // target: 'http://huiyuncas.chinaccs.cn/landcrm', //中通服正式
- // target: 'https://resi2-service-uat.capitaland.com.cn/landcrm', //凯德
- // target: 'http://hui.ndzwy.com/landcrm', //新大正
- // target: 'http://wy.zzldgc.cn/landcrm', //绿都
- // target: 'http://qiaoxintest.wuyeface.com/landcrm', //侨鑫
- // target: 'http://rosmart.zhenro.com/landcrm', //正荣
- target: servicePath + '/landcrm', //敏捷测试
- // target: 'http://172.18.1.253:8082/landcrm', //葛洲坝测试接口
- secure: false,
- changeOrigin: true,
- pathRewrite: {
- '^/landcrm': '/'
- }
- },
- "/decorationManage": {
- // target: 'http://wyappcs.gzbfdc.com:5708/decorationManage', //葛洲坝测试接口
- target: servicePath + '/decorationManage', //葛洲坝测试接口
- // target: 'http://172.18.1.253:8082/decorationManage', //葛洲坝测试接口
- secure: false,
- changeOrigin: true,
- pathRewrite: {
- '^/decorationManage': '/'
- }
- },
- },
- // 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
- }
- }
|