You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

140 lines
3.9 KiB

5 years ago
4 years ago
5 years ago
4 years ago
2 years ago
5 years ago
3 years ago
4 years ago
5 years ago
4 years ago
5 years ago
5 years ago
4 years ago
5 years ago
4 years ago
5 years ago
4 years ago
5 years ago
4 years ago
  1. 'use strict'
  2. // Template version: 1.2.6
  3. // see http://vuejs-templates.github.io/webpack for documentation.
  4. const path = require('path')
  5. module.exports = {
  6. dev: {
  7. // Paths
  8. assetsSubDirectory: '',
  9. assetsPublicPath: '/',
  10. proxyTable: {
  11. '/api/m1/oauth2client': {
  12. target: 'http://localhost:7002',
  13. changeOrigin: true,
  14. pathRewrite: {
  15. '^/api/m1/oauth2client': ''
  16. }
  17. },
  18. /**
  19. '/api/m1/xm': {
  20. target: 'http://localhost:7067',
  21. changeOrigin: true,
  22. pathRewrite: {
  23. '^/api/m1/xm': '/xm'
  24. }
  25. },
  26. '/api/m1/arc': {
  27. target: 'http://localhost:7012',
  28. changeOrigin: true,
  29. pathRewrite: {
  30. '^/api/m1/arc': '/arc'
  31. }
  32. },
  33. '/api/m1/sys': {
  34. target: 'http://localhost:7015',
  35. changeOrigin: true,
  36. pathRewrite: {
  37. '^/api/m1/sys': '/sys'
  38. }
  39. },
  40. **/
  41. // '/api/m1/pay': {
  42. // target: 'http://localhost:7125',
  43. // changeOrigin: true,
  44. // pathRewrite: {
  45. // '^/api/m1/pay': '/pay'
  46. // }
  47. // },
  48. /**
  49. '/api/m1/workflow': {
  50. target: 'http://localhost:7080',
  51. changeOrigin: true,
  52. pathRewrite: {
  53. '^/api/m1/workflow': '/workflow'
  54. }
  55. },
  56. **/
  57. '/api': {
  58. target: 'https://www.qingqinkj.com',
  59. changeOrigin: true,
  60. pathRewrite: {
  61. '^/api': '/api'
  62. }
  63. }
  64. },
  65. // Various Dev Server settings
  66. host: 'localhost', // can be overwritten by process.env.HOST
  67. port: 8067, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
  68. autoOpenBrowser: true,
  69. errorOverlay: true,
  70. notifyOnErrors: false,
  71. poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
  72. // Use Eslint Loader?
  73. // If true, your code will be linted during bundling and
  74. // linting errors and warnings will be shown in the console.
  75. useEslint: false,
  76. // If true, eslint errors and warnings will also be shown in the error overlay
  77. // in the browser.
  78. showEslintErrorsInOverlay: false,
  79. /**
  80. * Source Maps
  81. */
  82. // https://webpack.js.org/configuration/devtool/#development
  83. devtool: 'eval',
  84. // If you have problems debugging vue-files in devtools,
  85. // set this to false - it *may* help
  86. // https://vue-loader.vuejs.org/en/options.html#cachebusting
  87. cacheBusting: true,
  88. // CSS Sourcemaps off by default because relative paths are "buggy"
  89. // with this option, according to the CSS-Loader README
  90. // (https://github.com/webpack/css-loader#sourcemaps)
  91. // In our experience, they generally work as expected,
  92. // just be aware of this issue when enabling this option.
  93. cssSourceMap: false,
  94. },
  95. build: {
  96. // Template for index.html
  97. index: path.resolve(__dirname, '../dist/index.html'),
  98. // Paths
  99. assetsRoot: path.resolve(__dirname, '../dist'),
  100. assetsSubDirectory: '',
  101. // you can set by youself according to actual condition
  102. assetsPublicPath: './',
  103. /**
  104. * Source Maps
  105. */
  106. productionSourceMap: false,
  107. // https://webpack.js.org/configuration/devtool/#production
  108. devtool: false,
  109. // Gzip off by default as many popular static hosts such as
  110. // Surge or Netlify already gzip all static assets for you.
  111. // Before setting to `true`, make sure to:
  112. // npm install --save-dev compression-webpack-plugin
  113. productionGzip: true,
  114. productionGzipExtensions: ['js', 'css'],
  115. // Run the build command with an extra argument to
  116. // View the bundle analyzer report after build finishes:
  117. // `npm run build --report`
  118. // Set to `true` or `false` to always turn it on or off
  119. bundleAnalyzerReport: process.env.npm_config_report
  120. }
  121. }