Codegyre/Robo — pull request #68 by Rarst (2014-10-27 17:49:40+00:00)
Title: Implemented Minify task

Task implements minification of CSS and JS assets:
- accepts asset file path or string source
- tries to intelligently guess asset type
- tries to intelligently set default destination

Code examples:
```php
$this->taskMinify( 'web/assets/theme.css' )
->run()
```

```php
$this->taskMinify( ".something \n { color : red; }\n" )
->to( 'css/style.min.css' )
->run();
```
Public methods:
- `to( $dst )` explicit destination path
- `type( $type )` explicit asset type
- `__toString()` casts to minified string, without writing file

Fixes #67