123456789101112131415161718192021222324252627282930313233
  1. module.exports = {
  2. env: {
  3. NODE_ENV: '"development"'
  4. },
  5. defineConstants: {
  6. APPID:'"wx74db171e5f6524ad"'
  7. // HOST: '"http://localhost:7080"',
  8. // WSS_HOST: '"ws://localhost:7080"',
  9. // OSS_PATH: "https://njcj.oss-cn-shanghai.aliyuncs.com/",
  10. // OSS_FAST_PATH: "https://njcj.oss-accelerate.aliyuncs.com/",
  11. },
  12. mini: {},
  13. h5: {
  14. publicPath: '/',
  15. staticDirectory: 'static',
  16. postcss: {
  17. autoprefixer: {
  18. enable: true
  19. }
  20. },
  21. // 自定义 Webpack 配置
  22. // webpackChain: {},
  23. devServer: {
  24. proxy: {
  25. '/api': {
  26. // target: 'https://sgl.ycjcjy.com',
  27. target: 'http://localhost:7080',
  28. changeOrigin: true
  29. }
  30. }
  31. }
  32. }
  33. }