https://github.com/parambirs/ant-yui-compressor
Ant task for compressing JavaScript and CSS files using YUI compressor
https://github.com/parambirs/ant-yui-compressor
ant yui yui-compressor
Last synced: 2 months ago
JSON representation
Ant task for compressing JavaScript and CSS files using YUI compressor
- Host: GitHub
- URL: https://github.com/parambirs/ant-yui-compressor
- Owner: parambirs
- License: other
- Created: 2013-10-04T06:57:37.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2024-01-03T19:15:35.000Z (over 1 year ago)
- Last Synced: 2024-01-03T20:27:22.699Z (over 1 year ago)
- Topics: ant, yui, yui-compressor
- Language: JavaScript
- Homepage:
- Size: 159 KB
- Stars: 5
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
About ant-yui-compressor
==================ant-yui-compressor is an [Apache Ant](http://ant.apache.org/) task for compressing multiple JavaScript and CSS files using [YUI compressor](https://github.com/yui/yuicompressor).
### Features
* JS files minification
* CSS files minification
* Option to automatically delete original source files after generating minified files##### Origins
This project is based on [yui-compressor-ant-task](https://github.com/sbuckle/yui-compressor-ant-task/) by Simon Buckle
which only supports JS minification.### Basic Usage
```xml
```
**Note: The `toDir` attribute, as well as `fileset` & `mapper` elements are required**.
The `fileset` element specifies the list of files to be minified. The `mapper` elements describes the naming convention for minified files.
Both [fileset](http://ant.apache.org/manual/Types/fileset.html) and [mapper](http://ant.apache.org/manual/Types/mapper.html) are standard Ant types and have various configuration options.### Example
A working ant sample project is available with the source code (https://github.com/parambirs/ant-yui-compressor/tree/master/example).
### Options
**JavaScript**
The ant task supports the following attributes for JS files:
Attribute
Required?
Default
toDir
Yes
N/A
deleteOriginal
No
false
linebreak
No
-1
munge
No
true
preserveAllSemiColons
No
false
disableOptimizations
No
false
verbose
No
false
**CSS**
The following options are available for CSS files:
Attribute
Required?
Default
toDir
Yes
N/A
deleteOriginal
No
false
linebreak
No
-1