In DeepSeek Harness (DSH) workflow development, code compression is often required when handling frontend resources. Manual handling or relying on external services increases complexity. The dsh-minify plugin addresses this issue through a local Node.js implementation.
Plugin Positioning¶
This is a workflow plugin used to compress JS, CSS, and HTML code locally. It is maintained by uckkk, implemented purely in Node, and requires no network connection or external service calls at runtime.
Installation and Enablement¶
Install the plugin by running the following command:
dsh plugin add dsh-minify
Or install it from the GitHub repository:
dsh plugin add github:uckkk/dsh-minify
After installation, you need to enable the plugin in the package.json file of your DSH Profile. Add "dsh-minify" to the dsh.profile.bundles field.
Core Features¶
- Code Minification: Supports minifying JS, CSS, and HTML code.
- Local Execution: Runs purely locally based on Node.js, without relying on external APIs or network requests.
Usage¶
After installing and enabling the plugin in the configuration, you can invoke the tools registered by the plugin in a DSH session to minify code.
Notes¶
- Source Code Review: This plugin runs third-party code locally. Be sure to review the source code yourself before installation.
- Dependency Requirements: Before use, ensure that
@deepseek-ai/cordis(>= 4.0.1) and@deepseek-ai/dsh-tools(>= 0.1.0-rc.6) are installed in the environment.