-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat(core): upgrade to webpack-dev-server@4 #5420
Conversation
updated the types and made changes according to https://github.com/webpack/webpack-dev-server/blob/master/migration-v4.md
TBH, I'm not sure whether the tests cover the start flow or hot reloading. Given a custom client/overlay is used, further validation of this feels needed. The logging options were removed from DevServer itself, as it now uses webpack's logging mechanism. |
✔️ [V2] 🔨 Explore the source changes: 356daa3 🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/617ac69b8f96040008d7e268 😎 Browse the preview: https://deploy-preview-5420--docusaurus-2.netlify.app |
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-5420--docusaurus-2.netlify.app/ |
Thanks! I am able to start the dev server successfully ( However there are a few issues:
Can you add back the useless |
Some useful CRA PR to get some inspiration: |
Some random notes:
However, I'm not able to get rid of the following logs that we didn't have before: As not all Docusaurus users are skilled frontend devs, I'd prefer not to show anything too complicated in the console ;) @alexander-akait any idea? |
Thanks for looking into this! :) The If you add |
@slorber for reduce stats output you can use |
Thanks To sum-up:
I think we'll follow what CRA do and use the new Webpack overlay features I'm on holiday in 2 days so will wait for my return to merge/release this. |
Also will be great any feedback/help with out current overlay, improving is not hard, just need some help here |
I've merged |
I'll make sure this PR is merged asap, just want to do a last stable release before merging it so that we have time to see dev issues by using it ourselves |
In near future I will implement |
# Conflicts: # yarn.lock
# Conflicts: # yarn.lock
Great, never thought about this in dev but it makes sense 👍 Let me know when we should upgrade and test this. @AviVahl we just released beta.7. If there's no major bug reported in the upcoming day I'll complete and merge this PR next week. |
beta.8 bugfix released, hope to merge this PR next week then 😅 |
@@ -98,7 +97,7 @@ | |||
"postcss": "^8.3.7", | |||
"postcss-loader": "^6.1.1", | |||
"prompts": "^2.4.1", | |||
"react-dev-utils": "^11.0.1", | |||
"react-dev-utils": "12.0.0-next.47", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
temporary pinning this dep, react-dev-utils package seems stable enough for usage in Docusaurus
Motivation
/static
folder with the officialstatic
option instead of an express middlewareUsed: https://github.com/webpack/webpack-dev-server/blob/master/migration-v4.md
Have you read the Contributing Guidelines on pull requests?
yes
Test Plan
yarn start
works with a good DX, hot reload and show new error overlay