index.js 4.4 KB

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