module.exports = { env: { NODE_ENV: '"production"', }, defineConstants: { ENV: '"PRODUCTION"', // HOST: '"https://api.bicredit.xin"', HOST: '"https://api.hrshuke.cn"', // "HOST": '"http://192.168.0.168:810"', // 格式化后,如果HOME_LOGO和APPID的值有换行,请手动修改格式回去!!!否则mycli修改不会生效!!!HOME_LOGO:还有APPID:后面还有个空格!!! APPID: '"458"', CHANNELCODE: '"hrqbxcx"', LOGO: '"https://comon-image.oss-cn-hangzhou.aliyuncs.com/miniPrograme/logo.png"', HOME_LOGO: '"https://comon-image.oss-cn-hangzhou.aliyuncs.com/miniPrograme/home_logo_hrqb.png"', }, 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') }) // })) // } }, };