Using the YUI Compressor from the command line $ java -jar yuicompressor-x.y.z.jar The YUI Compressor is open-source, so don't hesitate to look at the code to understand exactly how it works. Statement) The CSS compression algorithm uses a set of finely tuned regular expressions to compress the source CSS file. With, the YUI Compressor takes a defensive approach by not obfuscating any of the scopes containing the evil Wherever such a substitution is appropriate (in the face of Omitting as many white space characters as possible, and replacing all local symbols by a 1 (or 2, or 3) letter symbol It starts by analyzing the source JavaScript file to understand how it is structured. The YUI Compressor is written in Java (requires Java >= 1.4)Īnd relies on Rhino to tokenize the source JavaScript file. YUI Compressor also makes use of and distributes a binary of JArgs the JArgs BSD license applies to this binary. Rhino is issued under the Mozilla Public License (MPL), and MPL applies to the Rhino source and binaries that are distributed with YUI Compressor, including Rhino modifications made by YUI Compressor. YUI Compressor extends and implements code from Mozilla's Rhino project. License: All code specific to YUI Compressor is issued under a BSD license.CSS minification: Description of the CSS minification performed by the compressor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |