修改过页面
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.

60 lines
1.7 KiB

1 year ago
  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. '/api': {
  12. // target: 'http://apartmentcloud.xiaozhisz.cn/',
  13. target: 'http://test.zhiweisz.cn/',
  14. // target: 'http://192.168.1.26:8600/',
  15. changeOrigin: true, //是否跨域
  16. pathRewrite: {
  17. //重写路径
  18. '^/api': '' //代理路径
  19. }
  20. }
  21. },
  22. configureWebpack: {
  23. resolve: {
  24. extensions: ['.js', '.vue', '.json'],
  25. alias: {
  26. vue$: 'vue/dist/vue.esm.js',
  27. '@': path.join(__dirname, '/', 'src')
  28. }
  29. }
  30. },
  31. host: '192.168.1.20',
  32. port: 8082,
  33. autoOpenBrowser: false,
  34. errorOverlay: true,
  35. notifyOnErrors: true,
  36. poll: false,
  37. devtool: 'cheap-module-eval-source-map',
  38. cacheBusting: true,
  39. cssSourceMap: true
  40. },
  41. build: {
  42. // Template for index.html
  43. index: path.resolve(__dirname, '../dist/index.html'),
  44. assetsRoot: path.resolve(__dirname, '../dist'),
  45. assetsSubDirectory: 'static',
  46. assetsPublicPath: '/',
  47. /**
  48. * Source Maps
  49. */
  50. productionSourceMap: false,
  51. devtool: '#source-map',
  52. productionGzip: false,
  53. productionGzipExtensions: ['js', 'css'],
  54. bundleAnalyzerReport: process.env.npm_config_report
  55. }
  56. }