Upgrade to Docusaurus v3.8.1 + enable Docusaurus Faster - #8
Conversation
| }, | ||
|
|
||
| plugins: [ | ||
| ['@docusaurus/plugin-svgr',{}], |
There was a problem hiding this comment.
Unfortunately this is needed in your case since you don't use the plugin 😅
I thought it wouldn't affect anyone, but apparently I'm wrong. By chance it's easy to fix and restore the former behavior.
| "@docusaurus/preset-classic": "3.8.1", | ||
| "@docusaurus/theme-search-algolia": "3.8.1", | ||
| "@mdx-js/react": "^3.1.0", | ||
| "clean-css": "~5.3.3", |
There was a problem hiding this comment.
This deps shouldn't be needed, it's used internally and you don't use it when Docusaurus Faster is enabled. We'll remove it later because it's not maintained.
|
Things are a bit more complicated, the configuration files are generated from a template used for all +30 projects. I updated the template, applied it to this project and the build passed, including the automated build on GitHub Actions. The total build time came down from +2min to +1min. I would say that things are pretty fine now. Thank you for your support! |
|
Unfortunately enabling faster also enabled the new CSS logic, which broke my site. :-( I tried to find out how to enable only faster and keep everything else compatible with the old configuration, but the documentation is confusing for me. :-( I commented out the |
Fix facebook/docusaurus#11246
Site can build in less than 2s now (previously 14s)