[TYPO3-core] RFC #14247: Add a compressor/concatenator for CSS and JS
Steffen Kamper
info at sk-typo3.de
Thu Apr 29 10:26:51 CEST 2010
Hi,
Jigal van Hemert schrieb:
> Steffen Gebert wrote:
> //·remove·tabs,·spaces,·newlines,·etc
> $contents·=·str_replace(array("\r\n",·"\r",·"\n",·"\t",·'··',·'····',·'····'),·'',·$contents);
>
>
> I think the "\r\n" plus separete "\r" and "\n" are not necessary.
> Why is there four spaces twice?
>
i think this can be simplified with a reg expression.
Also be careful with \*, there are css hacks using this and it will be
stripped out too.
Have a look to this to get an idea:
http://drupal.org/files/issues/minify_css.php__1.txt
vg Steffen
More information about the TYPO3-team-core
mailing list