移动端
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

77 Zeilen
2.1 KiB

  1. 'use strict'
  2. // Template version: 1.3.1
  3. // see http://vuejs-templates.github.io/webpack for documentation.
  4. const path = require('path')
  5. module.exports = {
  6. dev: {
  7. // Paths
  8. assetsSubDirectory: 'static',
  9. assetsPublicPath: '/',
  10. proxyTable: {
  11. "/dev-api": {
  12. // 请求的目标主机
  13. target: 'http://testf.5256.xyz/ruoyi-admin/',
  14. changeOrigin: true,
  15. pathRewrite: {
  16. '^/dev-api': ''
  17. }
  18. }
  19. },
  20. // Various Dev Server settings
  21. host: 'localhost', // can be overwritten by process.env.HOST
  22. port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
  23. autoOpenBrowser: false,
  24. errorOverlay: true,
  25. notifyOnErrors: true,
  26. poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
  27. /**
  28. * Source Maps
  29. */
  30. // https://webpack.js.org/configuration/devtool/#development
  31. devtool: 'cheap-module-eval-source-map',
  32. // If you have problems debugging vue-files in devtools,
  33. // set this to false - it *may* help
  34. // https://vue-loader.vuejs.org/en/options.html#cachebusting
  35. cacheBusting: true,
  36. cssSourceMap: true
  37. },
  38. build: {
  39. // Template for index.html
  40. index: path.resolve(__dirname, '../dist/index.html'),
  41. // Paths
  42. assetsRoot: path.resolve(__dirname, '../dist'),
  43. assetsSubDirectory: 'static',
  44. assetsPublicPath: '/',
  45. /**
  46. * Source Maps
  47. */
  48. productionSourceMap: true,
  49. // https://webpack.js.org/configuration/devtool/#production
  50. devtool: '#source-map',
  51. // Gzip off by default as many popular static hosts such as
  52. // Surge or Netlify already gzip all static assets for you.
  53. // Before setting to `true`, make sure to:
  54. // npm install --save-dev compression-webpack-plugin
  55. productionGzip: false,
  56. productionGzipExtensions: ['js', 'css'],
  57. // Run the build command with an extra argument to
  58. // View the bundle analyzer report after build finishes:
  59. // `npm run build --report`
  60. // Set to `true` or `false` to always turn it on or off
  61. bundleAnalyzerReport: process.env.npm_config_report
  62. }
  63. }