Browse code

Update README regarding how to minify files

hiromipaw authored on03/07/2017 10:56:28
Showing1 changed files
... ...
@@ -77,7 +77,11 @@ repository.
77 77
 
78 78
 ### Some information regarding working with minified CSS and JS sources
79 79
 
80
-If you want to edit any of the CSS or JS sources, please bear in mind that the HTML uses the minified versions. We keep in the repository both versions side-to-side. Once you edit the original source make sure you generate the minified version again. Most editors have plugins to minify CSS and JS files.
80
+If you want to edit any of the CSS or JS sources, please bear in mind that the HTML uses the minified versions. We keep in the repository both versions side-to-side. Once you edit the original source make sure you generate the minified version again. Most editors have plugins to minify CSS and JS files. On Debian it is possible to install the yui-compressor package and use it as follows:
81
+
82
+
83
+    yui-compressor myfile.js -o myfile-min.js
84
+
81 85
 
82 86
 If you are wondering why is it "cool" to minify sources even though compression is used on the server, please consider that Minification can be well be used in combination with gzipping sources. Minification does a lot of additional things that compression doesn't do. During minification comments are removed, long variables are renamed to shorter variable names, etc. Transferred data can be significantly smaller after minification, than by simply compressing the original. Although this depends a lot on the original source, minifying helps with mobile browsers and slower connections.
83 87