异物检测系统-轻轨系列
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

index.js 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. // export const VUE_APP_API_URL = "../src/utils/apilist";
  6. module.exports = {
  7. dev: {
  8. // Paths
  9. assetsSubDirectory: 'static',
  10. assetsPublicPath: '/',
  11. proxyTable: {},
  12. // Various Dev Server settings
  13. host: 'localhost', // can be overwritten by process.env.HOST
  14. port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
  15. autoOpenBrowser: false,
  16. errorOverlay: true,
  17. notifyOnErrors: true,
  18. poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
  19. /**
  20. * Source Maps
  21. */
  22. // https://webpack.js.org/configuration/devtool/#development
  23. devtool: 'cheap-module-eval-source-map',
  24. // If you have problems debugging vue-files in devtools,
  25. // set this to false - it *may* help
  26. // https://vue-loader.vuejs.org/en/options.html#cachebusting
  27. cacheBusting: true,
  28. cssSourceMap: true
  29. },
  30. /**
  31. * @description api请求基础路径
  32. */
  33. baseUrl: {
  34. // dev: 'https://testapi.vtor.xyz/web/',
  35. // dev: 'http://api.ruiroad.cn/web/',
  36. // pro: 'http://api.ruiroad.cn/web/'
  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. }