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

Update to webpack v5 #382

Merged
merged 1 commit into from
Oct 19, 2020
Merged

Update to webpack v5 #382

merged 1 commit into from
Oct 19, 2020

Conversation

paulfalgout
Copy link
Member

  • Add the Clubhouse Story ID: [ch23555]
    For reviewing this one @LisaManresa if you could pull it down and run all of the various npm scripts through to make sure this doesn't break any of your day-to-day.

There's a few small known issues addressed here, but I'm comfortable moving forward.
webpack-dev-server's hot reload is currently failing when the target is set to browserlist which is automatically true for our config. But we can set it to web for local development re: webpack/webpack-dev-server#2758 (comment). I don't love this as it means we're not compiling the exact same settings for dev as we are for prod however they're currently working on a fix and we probably don't really have a situation in which this would break something...

webpack-dev-server's --open cli flag is broken, so that configuration needed to move to webpack.config.js and called with webpack serve webpack/webpack-dev-server#2765 (comment)

html-webpack-plugin wasn't using the correct hooks for webpack v5 and is currently working on fixing that in their alpha release. The changes are small and the alpha addresses the issue for our use case, so I'm pretty confident in making that shift as otherwise it seems to work fine. jantimon/html-webpack-plugin#1527 (comment)

Copy link
Contributor

@BenCoffeed BenCoffeed left a comment

Choose a reason for hiding this comment

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

🎉

Copy link
Contributor

@LisaManresa LisaManresa left a comment

Choose a reason for hiding this comment

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

I don't see any red flags after running everything locally.

@paulfalgout paulfalgout merged commit 40e23f9 into develop Oct 19, 2020
@paulfalgout paulfalgout deleted the chore/webpack5 branch October 19, 2020 16:07
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.

3 participants