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

Webpack dev server config does not hot reload (swizzle, #10238

Open
1 task done
slorber opened this issue Jun 20, 2024 · 0 comments
Open
1 task done

Webpack dev server config does not hot reload (swizzle, #10238

slorber opened this issue Jun 20, 2024 · 0 comments
Labels
bug An error in the Docusaurus core causing instability or issues with its execution domain: dx Related to developer experience of working on Docusaurus sites

Comments

@slorber
Copy link
Collaborator

slorber commented Jun 20, 2024

Description

As far as I know, to this day, it is not possible to update Webpack Dev Server config while the dev server is running (webpack/webpack-cli#15)

Unfortunately, we need this for Docusaurus, otherwise there are many situations requiring users to restart the Docusaurus dev server (docusaurus start), notably:

If no solution is provided by Webpack, we may need to stop/recreate the dev server ourselves in cases we are able to detect. Detecting aliases changes might be the lowest hanging fruit to implement.

Steps to reproduce

Swizzle any component while the dev server is running: the new swizzled copy is added to your site but if you modify it nothing happens. This is because Webpack is still loading the original files. Webpack should load the new swizzled files

Your environment

  • Docusaurus version used: 3.4

Self-service

  • I'd be willing to fix this bug myself.
@slorber slorber added the bug An error in the Docusaurus core causing instability or issues with its execution label Jun 20, 2024
@Josh-Cena Josh-Cena added the domain: dx Related to developer experience of working on Docusaurus sites label Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution domain: dx Related to developer experience of working on Docusaurus sites
Projects
None yet
Development

No branches or pull requests

2 participants