Plugins API: beforeDevServer
and afterDevServer
are documented, but don't exist
#9655
Open
6 of 7 tasks
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs triage
This issue has not been triaged by maintainers
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
https://docusaurus.io/docs/api/plugin-methods mentions
beforeDevServer
andafterDevServer
. When I attempted to use these, I found I couldn't get them to do anything. A quick search in GitHub shows only results in.mdx
files, so it appears to me like the API simply doesn't exist. Searching for configureWebpack instead, for example, brings up a bunch of results.Reproducible demo
https://codesandbox.io/p/devbox/examples-classic-b9y9z?file=%2Fdocusaurus.config.js
Steps to reproduce
running beforeDevServer
isn't loggedExpected behavior
I don't really know because it's completely broken, but I'd expect it to at least console.log when starting the dev server, like it does if I configure the plugin manually using
configureWebpack
.Actual behavior
Nothing is logged. I get no behaviour change.
Your environment
No response
Self-service
The text was updated successfully, but these errors were encountered: