Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove webpack-chunk-hash plugin #608

Merged
merged 1 commit into from Aug 9, 2019

Conversation

Lyrkan
Copy link
Collaborator

@Lyrkan Lyrkan commented Jul 10, 2019

This PR removes the webpack-chunk-hash plugin since:

@Lyrkan Lyrkan force-pushed the remove-webpack-chunk-hash branch from 5f4438a to b998ad2 Compare July 24, 2019 20:38
@weaverryan
Copy link
Member

Encore gets smaller. Excellent :). Thank you @Lyrkan!

@weaverryan weaverryan merged commit b998ad2 into symfony:master Aug 9, 2019
weaverryan added a commit that referenced this pull request Aug 9, 2019
This PR was merged into the master branch.

Discussion
----------

Remove webpack-chunk-hash plugin

This PR removes the `webpack-chunk-hash` plugin since:

* using `[chunkhash]` was deprecated a while ago (in #463)
* it seems to be causing issues even when `[chunkhash]` is not used at all (fixes #605)

Commits
-------

b998ad2 Remove webpack-chunk-hash plugin
weaverryan added a commit that referenced this pull request Aug 9, 2019
… 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dynamic imports don't work with --watch and versioning
3 participants