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

Fix handling of RTL files in the manifest #171

Merged
merged 3 commits into from
Apr 6, 2021

Conversation

atimmer
Copy link
Contributor

@atimmer atimmer commented Apr 6, 2021

When using the WebpackRTLPlugin the manifest doesn't produce entries for both the original and the RTL file. This results in the wrong file being loaded. This is caused by the fact that both files are in the same chunk.

There is an issue tracking this on the WebpackRTLPlugin: romainberger/webpack-rtl-plugin#14

This commit includes a workaround. By providing a map function to the manifest plugin we can change the name when we're dealing with an RTL file. That results in two entries in the eventual manifest.

cc @kadamwhite, @alwaysblank

atimmer and others added 3 commits April 6, 2021 15:48
When using the WebpackRTLPlugin the manifest doesn't produce entries
for both the original and the RTL file. This results in the wrong file
being loaded. This is caused by the fact that both files are in the
same chunk.

There is an issue tracking this on the WebpackRTLPlugin:
romainberger/webpack-rtl-plugin#14

This commit includes a workaround. By providing a `map` function to
the manifest plugin we can change the name when we're dealing with an
RTL file. That results in two entries in the eventual manifest.
Copy link
Contributor

@kadamwhite kadamwhite left a comment

Choose a reason for hiding this comment

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

Thanks for this! Added some docs and fixed a linting error, we'll merge and release a new version of the plugin ASAP

@kadamwhite kadamwhite merged commit 01bfecc into humanmade:main Apr 6, 2021
@kadamwhite
Copy link
Contributor

And, published in v0.11

@atimmer atimmer deleted the fix-handling-of-rtl-files branch April 6, 2021 15:51
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.

2 participants