企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# C.48 JsMinTask The `JsMinTask` minifies JavaScript files using [JShrink](https://github.com/tedivm/JShrink), which can be installed using composer (Phing will try to use the composer autoloader) Table C.57:聽Attributes NameTypeDescriptionDefaultRequired`targetDir``String`Path where to store minified JavaScript filesnoneYes`suffix``String`Suffix to append to the filenames.-minNo`failonerror``Boolean`Whether an error while minifying a JavaScript file should stop the build or not`false`No C.48.1 Example ``` <jsMin targetDir="docroot/script/minified" failOnError="false"> <fileset dir="docroot/script"> <include name="**/*.js"/> </fileset> </jsMin> ``` C.48.2 Supported Nested Tags - `fileset` JavaScript files to be minified.