You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #609 Fix old integrity hashes being added to the entrypoints.json with --watch (Lyrkan)
This PR was merged into the master branch.
Discussion
----------
Fix old integrity hashes being added to the entrypoints.json with --watch
This PR fixes a really small issue that I noticed while working on #608.
When using `--watch` and `enableIntegrityHashes()` together it works fine for the first compilation, but on the next ones the old hashes also get added to the `entrypoints.json` file.
**First compilation:**
```json
{
"entrypoints": {
"main": {
"js": [
"/build/main.js"
]
}
},
"integrity": {
"/build/main.js": "<OLDHASH>"
}
}
```
**Second compilation:**
```json
{
"entrypoints": {
"integrity": {
"/build/main.js": ["<OLDHASH>"]
},
"main": {
"js": [
"/build/main.js"
]
}
},
"integrity": {
"/build/main.js": "<NEWHASH>"
}
}
```
Commits
-------
eecebb7 Fix old integrity hashes being added to the entrypoints.json with --watch
0 commit comments