index.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. 'use strict'
  2. // Template version: 1.1.1
  3. // see http://vuejs-templates.github.io/webpack for documentation.
  4. const path = require('path')
  5. /*
  6. const servicePath = 'http://wyservice.gzbfdc.com:5008' //葛洲坝
  7. */
  8. //const servicePath = 'http://wy.ghhn.com' //葛洲坝
  9. // const servicePath = 'http://cms.wuyeface.com' //云环境
  10. //const servicePath = 'http://kolottest.laifung-gz.com.cn' //高乐测试
  11. //const servicePath = 'http://kolot.laifung-gz.com.cn' //高乐测试
  12. // const servicePath = 'http://wuye.enxiang.net:5906' //恩祥
  13. //const servicePath = 'http://wy.hkhc.com.cn' //香江新地址
  14. // const servicePath = 'https://pms.hajwy.com' //光大生产
  15. // const servicePath = 'http://wx.cqygwy.com' //渝高物业
  16. const servicePath = 'http://sys.chjpm.com:6902/' //漕河泾
  17. // const servicePath = 'http://qpi.zhenghongwy.com:8800' //正弘
  18. module.exports = {
  19. project: "", //打包需要使用(sass-loader)
  20. build: {
  21. env: require('./prod.env'),
  22. index: path.resolve(__dirname, '../dist/index.html'),
  23. assetsRoot: path.resolve(__dirname, '../dist'),
  24. assetsSubDirectory: 'static',
  25. assetsPublicPath: './',
  26. productionSourceMap: false,
  27. // Gzip off by default as many popular static hosts such as
  28. // Surge or Netlify already gzip all static assets for you.
  29. // Before setting to `true`, make sure to:
  30. // npm install --save-dev compression-webpack-plugin
  31. productionGzip: false,
  32. productionGzipExtensions: ['js', 'css'],
  33. // Run the build command with an extra argument to
  34. // View the bundle analyzer report after build finishes:
  35. // `npm run build --report`
  36. // Set to `true` or `false` to always turn it on or off
  37. bundleAnalyzerReport: process.env.npm_config_report
  38. },
  39. dev: {
  40. env: require('./dev.env'),
  41. host: '172.18.0.116',
  42. port: process.env.PORT || 8800,
  43. autoOpenBrowser: true,
  44. assetsSubDirectory: 'static',
  45. assetsPublicPath: '/',
  46. proxyTable: {
  47. "/landcrm": {
  48. // target: 'http://cms.wuyeface.com/landcrm', //一碑云环境
  49. // target: 'http://huiyuntest.wuyeface.com/landcrm', //中通服测试
  50. // target: 'http://wyappcs.gzbfdc.com:5708/landcrm', // 葛洲坝测试接口
  51. // target: 'http://huiyuncas.chinaccs.cn/landcrm', //中通服正式
  52. // target: 'https://resi2-service-uat.capitaland.com.cn/landcrm', //凯德
  53. // target: 'http://hui.ndzwy.com/landcrm', //新大正
  54. // target: 'http://wy.zzldgc.cn/landcrm', //绿都
  55. // target: 'http://qiaoxintest.wuyeface.com/landcrm', //侨鑫
  56. // target: 'http://rosmart.zhenro.com/landcrm', //正荣
  57. // target: servicePath + '/landcrm', //敏捷测试
  58. target: 'https://wy.gmtcmpark.com/landcrm', //粤奥测试接口
  59. // // target: 'http://qpi.zhenghongwy.com:8800', //正弘
  60. // target: 'http://qpi.zhenghongwy.com:8800/landcrm',
  61. // target: "http://172.18.0.23/landcrm",
  62. secure: false,
  63. changeOrigin: true,
  64. pathRewrite: {
  65. '^/landcrm': '/'
  66. }
  67. },
  68. "/leasing": {
  69. // target: 'http://wyappcs.gzbfdc.com:5708/decorationManage', //葛洲坝测试接口
  70. // target: servicePath + '/decorationManage', //葛洲坝测试接口
  71. target: 'https://wy.gmtcmpark.com/leasing', //葛洲坝测试接口
  72. // target: 'http://172.18.1.253:8082/leasing',
  73. secure: false,
  74. changeOrigin: true,
  75. pathRewrite: {
  76. '^/leasing': '/'
  77. }
  78. },
  79. "/decorationManage": {
  80. // target: 'http://wyappcs.gzbfdc.com:5708/decorationManage', //葛洲坝测试接口
  81. // target: servicePath + '/decorationManage', //葛洲坝测试接口
  82. target: 'https://wy.gmtcmpark.com/decorationManage', //粤奥测试接口
  83. // target: 'http://172.18.1.253:8082/decorationManage',
  84. secure: false,
  85. changeOrigin: true,
  86. pathRewrite: {
  87. '^/decorationManage': '/'
  88. }
  89. },
  90. },
  91. // CSS Sourcemaps off by default because relative paths are "buggy"
  92. // with this option, according to the CSS-Loader README
  93. // (https://github.com/webpack/css-loader#sourcemaps)
  94. // In our experience, they generally work as expected,
  95. // just be aware of this issue when enabling this option.
  96. cssSourceMap: false
  97. }
  98. }