From f58716e72979c6458aefd55213e211b94d47310a Mon Sep 17 00:00:00 2001 From: oasis Date: Mon, 31 Mar 2025 10:13:08 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=20=E4=BF=AE=E5=A4=8D=E6=AD=A3?= =?UTF-8?q?=E5=BC=8F=E7=8E=AF=E5=A2=83=E7=9A=84=20publicPath?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/nutui-taro-demo/config/prod.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/nutui-taro-demo/config/prod.js b/packages/nutui-taro-demo/config/prod.js index d8f47a1da4..41cd7f3924 100644 --- a/packages/nutui-taro-demo/config/prod.js +++ b/packages/nutui-taro-demo/config/prod.js @@ -11,6 +11,8 @@ try { /* empty */ } +console.log(hash && UI ? `-${hash}` : '') + module.exports = { env: { NODE_ENV: '"production"', @@ -19,7 +21,7 @@ module.exports = { defineConstants: {}, mini: {}, h5: { - publicPath: `/taro/react/3x/demo-${hash}`, + publicPath: `/taro/react/3x/demo${hash && UI ? `-${hash}` : ''}`, /** * WebpackChain 插件配置 * @docs https://github.com/neutrinojs/webpack-chain