PHP 클래스 Minify_CSS_Compressor, minify
This is a heavy regex-based removal of whitespace, unnecessary
comments and tokens, and some CSS value minimization, where practical.
Many steps have been taken to avoid breaking comment-based hacks,
including the ie5/mac filter (and its inversion), but expect tricky
hacks involving comment tokens in 'content' value strings to break
minimization badly. A test suite is available.
Note: This replaces a lot of spaces with line breaks. It's rumored
(https://github.com/yui/yuicompressor/blob/master/README.md#global-options)
that some source control tools and old browsers don't like very long lines.
Compressed files with shorter lines are also easier to diff. If this is
unacceptable please use CSSmin instead.
파일 보기
프로젝트 열기: mrclay/minify
1 사용 예제들
보호된 프로퍼티들
공개 메소드들
보호된 메소드들
비공개 메소드들
메소드 상세
Process a font-family listing and return a replacement
Replace what looks like a set of selectors
프로퍼티 상세
Are we "in" a hack? I.e. are some browsers targetted until the next comment?
protected array $_options |
리턴 |
array |
|