module.exports = {
  env: {
    NODE_ENV: '"production"',
  },
  defineConstants: {
    // HOST: '"http://192.168.89.147:9087"',
    // HOST: '"https://wmcj.ycjcjy.com"',
    HOST: '"http://api.wmcj.ycjcjy.com"',
    MAPHOST: '"http://api.wmcj.ycjcjy.com/api2"',
    QMAP_WEBSERVICE_KEY: '"HTPBZ-HHJA7-XD2XD-PRS37-H3HVJ-U5BAA"',
    AD_IMAGE: '"https://h5.njyunzhi.com/images/citizen_banner.png"',
    DEFAULT_POS: '"101.718514,26.582455"', // 攀枝花市人民政府 gcj02
    VERSION: '"1.1.29-20240224"',
  },
  mini: {},
  h5: {
    /**
     * WebpackChain 插件配置
     * @docs https://github.com/neutrinojs/webpack-chain
     */
    // webpackChain(chain) {
    /**
     * 如果 h5 端编译后体积过大,可以使用 webpack-bundle-analyzer 插件对打包体积进行分析。
     * @docs https://github.com/webpack-contrib/webpack-bundle-analyzer
     */
    // chain
    //   .plugin("analyzer")
    //   .use(require("webpack-bundle-analyzer").BundleAnalyzerPlugin, []);
    /**
     * 如果 h5 端首屏加载时间过长,可以使用 prerender-spa-plugin 插件预加载首页。
     * @docs https://github.com/chrisvfritz/prerender-spa-plugin
     */
    // const path = require("path");
    // const Prerender = require("prerender-spa-plugin");
    // const staticDir = path.join(__dirname, "..", "dist");
    // chain.plugin("prerender").use(
    //   new Prerender({
    //     staticDir,
    //     routes: ["/pages/index/index"],
    //     postProcess: (context) => ({
    //       ...context,
    //       outputPath: path.join(staticDir, "index.html"),
    //     }),
    //   })
    // );
  },
  // },
};