Skip to content

Commit

Permalink
- CSS compression now supports import statements with absolute URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
subchild committed Nov 1, 2011
1 parent 272fa7c commit 6b964c0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion FileBundler.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ private function compressJavaScriptBundle($code){
}

private function compressCSSBundle($css){
$css = preg_replace('!//[^\n\r]+!', '', $css); // comments
$css = preg_replace('/[\r\n\t\s]+/s', ' ', $css); // new lines, multiple spaces/tabs/newlines
$css = preg_replace('#/\*.*?\*/#', '', $css); // comments
$css = preg_replace('/[\s]*([\{\},;:])[\s]*/', '\1', $css); // spaces before and after marks
Expand Down

0 comments on commit 6b964c0

Please sign in to comment.