feat: minify SDK JavaScript and improve build process

- Implemented minification of the cs-ai-agent-sdk.min.js file using Terser during the build process.
- Updated build-sdk.mjs to read the source code, minify it, and write the output to the target directory.
- Added logging to display the size reduction after minification.
- Removed redundant code and streamlined the configuration handling in the SDK.
This commit is contained in:
mlogclub
2026-04-24 22:37:11 +08:00
parent 6ffbbb04ae
commit 1db5c3bf39
4 changed files with 104 additions and 437 deletions
+1
View File
@@ -61,6 +61,7 @@
"eslint-config-next": "16.1.6",
"sass": "^1.98.0",
"tailwindcss": "^4",
"terser": "^5.46.2",
"typescript": "^5"
}
}