Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Cache-bust languages.json with file-loader #2658

Merged
merged 5 commits into from
Feb 20, 2019
Merged

Conversation

bwindels
Copy link
Contributor

See element-hq/element-web#8710

To get a filename with a content hash in it, we use the file-loader plugin for webpack just like for other resources. But because the file is located in riot-web, we moved the relative path into the webpack config so react-sdk doesn't depend on riot-web directly.

otherwise react-sdk wouldn't be able to build anymore
without riot-web in a specific location
@jryans jryans self-assigned this Feb 18, 2019
Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

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

Looks good overall to me! 😁 For the unit tests, maybe you need to sprinkle the new value in karma.conf.js?

src/languageHandler.js Outdated Show resolved Hide resolved
@jryans jryans assigned bwindels and unassigned jryans Feb 18, 2019
@bwindels bwindels assigned jryans and unassigned bwindels Feb 20, 2019
Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

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

Thanks, this looks ready to go!

@jryans jryans assigned bwindels and unassigned jryans Feb 20, 2019
@bwindels bwindels merged commit 6455334 into develop Feb 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants