index.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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://10.1.200.16:6902' //漕河泾
  17. const servicePath = 'http://sys.chjpm.com:6902' //正弘
  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.110',
  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: 'http://172.18.1.253:8082/landcrm', //葛洲坝测试接口
  59. secure: false,
  60. changeOrigin: true,
  61. pathRewrite: {
  62. '^/landcrm': '/'
  63. }
  64. },
  65. "/decorationManage": {
  66. // target: 'http://wyappcs.gzbfdc.com:5708/decorationManage', //葛洲坝测试接口
  67. target: servicePath + '/decorationManage', //葛洲坝测试接口
  68. // target: 'http://172.18.1.253:8082/decorationManage', //葛洲坝测试接口
  69. secure: false,
  70. changeOrigin: true,
  71. pathRewrite: {
  72. '^/decorationManage': '/'
  73. }
  74. },
  75. },
  76. // CSS Sourcemaps off by default because relative paths are "buggy"
  77. // with this option, according to the CSS-Loader README
  78. // (https://github.com/webpack/css-loader#sourcemaps)
  79. // In our experience, they generally work as expected,
  80. // just be aware of this issue when enabling this option.
  81. cssSourceMap: false
  82. }
  83. }