Skip to content

Commit d6f1f6e

Browse files
authored
chore: 修复正式环境的 publicPath (#3137)
1 parent f1257bd commit d6f1f6e

File tree

1 file changed

+3
-1
lines changed
  • packages/nutui-taro-demo/config

1 file changed

+3
-1
lines changed

packages/nutui-taro-demo/config/prod.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ try {
1111
/* empty */
1212
}
1313

14+
console.log(hash && UI ? `-${hash}` : '')
15+
1416
module.exports = {
1517
env: {
1618
NODE_ENV: '"production"',
@@ -19,7 +21,7 @@ module.exports = {
1921
defineConstants: {},
2022
mini: {},
2123
h5: {
22-
publicPath: `/taro/react/3x/demo-${hash}`,
24+
publicPath: `/taro/react/3x/demo${hash && UI ? `-${hash}` : ''}`,
2325
/**
2426
* WebpackChain 插件配置
2527
* @docs https://github.com/neutrinojs/webpack-chain

0 commit comments

Comments
 (0)