Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information