Skip to content

Commit b1b1034

Browse files
docs: say getMinimizerVersion must change with a banner helper's captured state
1 parent cc63bde commit b1b1034

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,6 +1422,8 @@ The banner goes at the top of the asset; a `getBannerPosition` helper returning
14221422
minify.getBannerPosition = () => "end";
14231423
```
14241424
1425+
The source of both helpers is part of the cache key and the `[chunkhash]`, but not the values they close over: a helper whose output depends on such a value must make `getMinimizerVersion` change with it, or a rebuild reuses the earlier banner from the cache.
1426+
14251427
**webpack.config.js**
14261428
14271429
```js

0 commit comments

Comments
 (0)