diff options
author | Kristóf Marussy <kristof@marussy.com> | 2024-03-21 20:59:50 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2024-03-21 20:59:50 +0100 |
commit | cad97041b39570e78b38352e60b4dae6870be3c2 (patch) | |
tree | a122f5c1155d85c6931ad0ec7e75706d8cf17066 /package.json | |
parent | Also compress Docusaurus-generated files (diff) | |
download | blog-cad97041b39570e78b38352e60b4dae6870be3c2.tar.gz blog-cad97041b39570e78b38352e60b4dae6870be3c2.tar.zst blog-cad97041b39570e78b38352e60b4dae6870be3c2.zip |
Simplify compression
Compress Docusaurus-generated files in a separate script instead of a post-build
hook to avoid post-build hook ordering and concurrency issues.
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package.json b/package.json index 57e8f60..fc56b75 100644 --- a/package.json +++ b/package.json | |||
@@ -14,7 +14,7 @@ | |||
14 | "private": true, | 14 | "private": true, |
15 | "scripts": { | 15 | "scripts": { |
16 | "docusaurus": "docusaurus", | 16 | "docusaurus": "docusaurus", |
17 | "build": "cross-env WEBPACK_URL_LOADER_LIMIT=0 docusaurus build", | 17 | "build": "cross-env WEBPACK_URL_LOADER_LIMIT=0 docusaurus build && node scripts/compressSite.mjs", |
18 | "swizzle": "docusaurus swizzle", | 18 | "swizzle": "docusaurus swizzle", |
19 | "clear": "docusaurus clear", | 19 | "clear": "docusaurus clear", |
20 | "serve": "docusaurus serve -p 1313 --no-open", | 20 | "serve": "docusaurus serve -p 1313 --no-open", |