From 7efa67af84b60b14724517e634673460bfcef8a1 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Thu, 21 Mar 2024 12:35:52 +0100 Subject: Also compress Docusaurus-generated files Run the compression manually for files that are not generated by Webpack. We must take over the @docusaurus/plugin-sitemap plugin to make sure we run after it has generated sitemap.xml. Docusaurus runs all plugin post-build actions in parallel with Promise.all, so the only way to do this is to invoke the post-build action in our own one. --- package.json | 1 + 1 file changed, 1 insertion(+) (limited to 'package.json') diff --git a/package.json b/package.json index 74600da..57e8f60 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "@docusaurus/plugin-sitemap": "^3.1.1", "@docusaurus/theme-classic": "^3.1.1", "@docusaurus/theme-common": "^3.1.1", + "@docusaurus/utils": "^3.1.1", "@mdx-js/react": "^3.0.1", "@phosphor-icons/react": "2.1.3", "@swc/core": "^1.4.8", -- cgit v1.2.3-54-g00ecf