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.

124 lines
3.5 KiB

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