I included several css files in my view using the following code – please correct me if this is a wrong way to do it:
``` echo $this->html->style('styles.css',array('inline'=>false,'weight'=>2)); ```
``` echo $this->html->style('normalize.css',array('inline'=>false,'weight'=>1)); ```
``` echo $this->html->style('desktop-experience.css',array('inline'=>false,'weight'=>3)); ```
``` echo $this->optimize->styles(); ```
No optimized css file was generated.
In this line ([ link ](http://rad-dev.org/li3_assets/source/extensions/helper/Optimize.php#202))
on my development system the regular expression was too greedy and matched everything up to the last quotation mark, including the added weight="2".
My workaround was to change it to:
``` if(preg_match('/\/css\/(.*\.css)"/', $file, $matches)) {```