Commit a05e141
committed
fix(theme): Conditionally load CSS to support dev and prod builds
The plugin's CSS was not loading in production builds. Adding it via getClientModules() fixed the build, but broke dark mode in development.
This change makes the CSS loading conditional:
- In production, getClientModules() is used to ensure the stylesheet is bundled.
- In development, this is disabled, allowing Docusaurus's default handling to manage theme changes and hot-reloading correctly.1 parent e0626ab commit a05e141
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
50 | 60 | | |
51 | 61 | | |
52 | 62 | | |
| |||
0 commit comments