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.

141 lines
3.9 KiB

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