The JsMinTask
minifies JavaScript files using JsMin. JsMin is bundled with
Phing and does not need to be installed separately.
For more information on minifying JavaScript files see Douglas Crockford's introduction to minifying JavaScript files.
Table 99. Attributes
Name | Type | Description | Default | Required |
---|---|---|---|---|
targetDir |
String |
Path where to store minified JavaScript files | none | Yes |
suffix |
String |
Suffix to append to the filenames. | -min | No |
failonerror |
Boolean |
Whether an error while minifying a JavaScript file should stop the build or not | false |
No |