Skip to content

Commit

Permalink
fix(h5): 优化 prebundle 模式下配置缓存策略 (NervJS#15227)
Browse files Browse the repository at this point in the history
Co-authored-by: Zakary <zakarycode@gmail.com>
  • Loading branch information
Hector-Chong and ZakaryCode authored Feb 19, 2024
1 parent 054c7d7 commit 7af9b25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/taro-webpack5-runner/src/webpack/BaseConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ export class BaseConfig {
// 让缓存失效
buildDependencies: {
// 与 Config 中处理的配置文件保持一致
config: [resolveScriptPath(path.join(appPath, 'config', 'index'))]
config: [resolveScriptPath(path.join(appPath, 'config', 'index'))],
files: [resolveScriptPath(path.join(appPath, 'app.config'))]
},
name: `${process.env.NODE_ENV}-${process.env.TARO_ENV}`
}
Expand Down

0 comments on commit 7af9b25

Please sign in to comment.