Skip to content

Webpacker instructions: fix incompatibility with Webpack 5 #109

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

Merged
merged 1 commit into from
Apr 30, 2022

Conversation

rstacruz
Copy link
Contributor

This updates the docs to not suggest a Webpack 4 plugin (webpack-fix-style-only-entries) for a Webpack 5 setup.

Background

The webpack-fix-style-only-entries recommended by the guide is not compatible with Webpack 5. Another plugin, webpack-remove-empty-scripts, is a drop-in replacement that works on Webpack 5.

Screenshots

This is what happens with webpack-fix-style-only-entries:

image

This is the notice on the webpack-fix-style-only-entries repo:

image

@dhh dhh merged commit 8faaef0 into rails:main Apr 30, 2022
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