OpenBuildings/asset-merger — Issue #4: Bug: array must contain at least one element
Author: xbagir
Created: 2012-01-02 16:42:09+00:00
State: open

configs:

```php
return array(
'merge' => array(Kohana::PRODUCTION, Kohana::DEVELOPMENT),
'folder' => "media/cache",
"load_paths" => array(
Assets::JAVASCRIPT => DOCROOT.'media/js'.DIRECTORY_SEPARATOR,
Assets::STYLESHEET => DOCROOT.'media/css'.DIRECTORY_SEPARATOR,
),
'processor' => array(
Assets::STYLESHEET => 'cssmin',
Assets::JAVASCRIPT => 'jsmin'
)
);
}
```

echo Assets::factory('main')
->js("http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js")
->js_block("window.asset_merger = true;")
->render();

ErrorException [ Warning ]: max() [function.max]: Array must contain at least one element
MODPATH\asset-merger\classes\asset\collection.php [ 66 ]