JavaScript and CSS minification

This is an implementation of a new tag for the OpenCms taglib that can automatically condense JavaScript and CSS code. The tag is used by enclosing a block of CSS of JavaScript with it, for example:

<cms:minify type="js">
function myFunc() {
  myVar = 123;
  alert( myVar );
}
</cms:jsminify>

The result in this case would be: "function myFunc(){a=123;alert(a)}"

The minification is done through the excellent Yahoo YUI compressor (http://developer.yahoo.com/yui/compressor/) which is also used by the jQuery project and which is, for example, able to condense variable names.

Modul Version: 1.0
Zur Verfügung gestellt von: Christian Steinert
Lizenz: LGPL
Zum Downloaden hier Klicken (820 kb)

Download von OpenCms

  • Version 8.5.1 von OpenCms ist erhältlich! Dieses Update verbessert die Content Editor Funktionen, die Solr Integration und behebt viele Probleme der Version 8.5.0. Jetzt OpenCms 8.5.1 kostenlos herunterladen!
    Größe:110242KB

    Zum Download hier klicken

Update von OpenCms

  • Aktualisieren Sie Ihre OpenCms Installation auf die aktuelle Version 8.5.1 mit dem einfach zu benutzenden Upgrade-Wizard.
    Größe:99450KB

    Zum Download hier klicken