mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 16:59:06 +02:00
docs: add swizzle delete tip (#10759)
This commit is contained in:
parent
91c0b5bf35
commit
9cefca42df
1 changed files with 6 additions and 0 deletions
|
@ -94,6 +94,12 @@ npm run swizzle -- --list
|
|||
|
||||
Use `--help` to see all available CLI options, or refer to the reference [swizzle CLI documentation](./cli.mdx#docusaurus-swizzle).
|
||||
|
||||
:::tip Removing Unneeded Swizzled Components
|
||||
|
||||
If you decide that a previously swizzled component is no longer necessary, you can simply remove its file(s) from the `src/theme` directory. After removing the component, make sure to restart your development server to ensure the changes are properly reflected.
|
||||
|
||||
:::
|
||||
|
||||
:::note
|
||||
|
||||
After swizzling a component, **restart your dev server** in order for Docusaurus to know about the new component.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue