Skip to content

Commit 5d51b31

Browse files
committed
fix: minify the generated docs [skip ci]
1 parent 380b379 commit 5d51b31

File tree

4 files changed

+774
-3
lines changed

4 files changed

+774
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ test/typings-compatibility/
2020
/script/*/*.d.ts
2121
/script/*/*.js.map
2222
tsconfig.tsbuildinfo
23+
/docs-raw

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"eslint-config-atomic": "^1.18.1",
4141
"eslint-plugin-prettier": "^4.2.1",
4242
"fs-extra": "^10.1.0",
43+
"minify-all-cli": "^1.0.13",
4344
"mocha": "^10.1.0",
4445
"node-gyp": "^9.3.0",
4546
"npm-run-all2": "^6.0.4",
@@ -81,7 +82,7 @@
8182
"build.library": "tsc -p ./src/tsconfig.json && run-s build.library.compat",
8283
"build.script": "tsc -p ./script/tsconfig.json",
8384
"build.js": "run-p build.script build.library",
84-
"build.doc": "typedoc --options ./typedoc.json --tsconfig ./tsconfig.docs.json",
85+
"build.doc": "typedoc --options ./typedoc.json --tsconfig ./tsconfig.docs.json && minify-all -s docs-raw -d docs --jsCompressor terser",
8586
"prebuild": "run-s build.js && node ./script/prebuild.js",
8687
"build.native": "node-gyp configure --release && node-gyp build --release",
8788
"build.native.debug": "cross-env CMAKE_BUILD_TYPE=Debug node-gyp configure --debug && cross-env CMAKE_BUILD_TYPE=Debug node-gyp build --debug",

0 commit comments

Comments
 (0)