prod.js 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. module.exports = {
  2. env: {
  3. NODE_ENV: '"production"'
  4. },
  5. defineConstants: {
  6. <<<<<<< HEAD
  7. // HOST: '"http://192.168.89.25:9087"',
  8. =======
  9. // HOST: '"http://192.168.89.147:9087"',
  10. >>>>>>> 5ab9f7c14c635202431490cc583c16a77f4f47a2
  11. HOST: '"https://wmcj.huoshannews.com"',
  12. AD_IMAGE: '"https://h5.njyunzhi.com/images/citizen_banner.png"',
  13. DEFAULT_POS: '"116.3476917447715,31.409912844296578"', // 霍山县人民政府 gcj02
  14. VERSION: '"1.1.24-20230516"',
  15. },
  16. mini: {},
  17. h5: {
  18. /**
  19. * WebpackChain 插件配置
  20. * @docs https://github.com/neutrinojs/webpack-chain
  21. */
  22. // webpackChain (chain) {
  23. // /**
  24. // * 如果 h5 端编译后体积过大,可以使用 webpack-bundle-analyzer 插件对打包体积进行分析。
  25. // * @docs https://github.com/webpack-contrib/webpack-bundle-analyzer
  26. // */
  27. // chain.plugin('analyzer')
  28. // .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin, [])
  29. // /**
  30. // * 如果 h5 端首屏加载时间过长,可以使用 prerender-spa-plugin 插件预加载首页。
  31. // * @docs https://github.com/chrisvfritz/prerender-spa-plugin
  32. // */
  33. // const path = require('path')
  34. // const Prerender = require('prerender-spa-plugin')
  35. // const staticDir = path.join(__dirname, '..', 'dist')
  36. // chain
  37. // .plugin('prerender')
  38. // .use(new Prerender({
  39. // staticDir,
  40. // routes: [ '/pages/index/index' ],
  41. // postProcess: (context) => ({ ...context, outputPath: path.join(staticDir, 'index.html') })
  42. // }))
  43. // }
  44. }
  45. }