index.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. 'use strict'
  2. const path = require('path')
  3. module.exports = {
  4. //http://192.168.0.105:8081/
  5. //http://app.bluefire.top:8088 线上地址
  6. dev: {
  7. assetsSubDirectory: 'static',
  8. assetsPublicPath: '/bid',
  9. proxyTable: {
  10. '/': {
  11. // target: 'http://43.136.176.26:7001', //后端接口地址 中间人运营平台
  12. target: 'http://127.0.0.1:28080', //后端接口地址
  13. changeOrigin: true, //是否跨域
  14. pathRewrite: {
  15. '^/': '/', //重写,
  16. }
  17. }
  18. },
  19. // 本地开发使用 192.168.0.126 localhost
  20. host: '127.0.0.1',
  21. // host: '192.168.124.14',
  22. port: 8081,
  23. autoOpenBrowser: true,
  24. errorOverlay: true,
  25. notifyOnErrors: false,
  26. poll: false,
  27. useEslint: true,
  28. showEslintErrorsInOverlay: false,
  29. devtool: 'cheap-source-map',
  30. cssSourceMap: false
  31. },
  32. build: {
  33. index: path.resolve(__dirname, '../dist/index.html'),
  34. assetsRoot: path.resolve(__dirname, '../dist'),
  35. assetsSubDirectory: 'static',
  36. assetsPublicPath: '/bid/',
  37. productionSourceMap: false,
  38. devtool: 'source-map',
  39. productionGzip: false,
  40. productionGzipExtensions: ['js', 'css'],
  41. bundleAnalyzerReport: process.env.npm_config_report || false,
  42. generateAnalyzerReport: process.env.npm_config_generate_report || false
  43. }
  44. }