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

Add version in js chunk file name #239

Merged
merged 6 commits into from Apr 18, 2023

Conversation

maudetes
Copy link
Contributor

Applies to _commonjsHelpers only in our case.

It allows us to version this file, preventing using a previous cached version that has changed.

Applies to _commonjsHelpers only in our case
@maudetes
Copy link
Contributor Author

_commonjsHelpers-legacy.js being loaded in raw.html, we need to find a way to load it with its correct name (manifest, package version, etc.)

If loading static chunks, use inline_burst.
Add package.json as bumpr files, to keep in sync
Somehow, setuptools version installed doesn't seem to be the correct 66.1.1 in cache
@maudetes maudetes changed the title Add hash in js chunk file name Add version in js chunk file name Apr 17, 2023
Copy link
Contributor Author

@maudetes maudetes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've opted for using the package version in the chunk file names, thus having the [name].[version].js pattern.
We use bumpr to keep the version number in sync when releasing.
We've added an option in theme_static to use this pattern instead of the default dummy param version (?_=version).

Additionally, I've had an issue with setuptools version being installed. I'm unclear why, but it seems that it doesn't use the specify version if we don't do a force-reinstall.

@maudetes maudetes merged commit d81b3a5 into datagouv:master Apr 18, 2023
7 checks passed
@maudetes maudetes deleted the feat/add-hash-to-js-chunk-filename branch April 18, 2023 07:32
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.

None yet

2 participants