/ Published in: PHP
URL: http://www.catswhocode.com/blog/3-ways-to-compress-css-files-using-php
Expand |
Embed | Plain Text
<?php function compress($buffer) { /* remove comments */ /* remove tabs, spaces, newlines, etc. */ ", "\r", "\n", "\t", ' ', ' ', ' '), '', $buffer); return $buffer; } /* your css files */ include('master.css'); include('typography.css'); include('grid.css'); include('print.css'); include('handheld.css'); ?>
You need to login to post a comment.
