3.3.1.13. Disabling minification

Warning

You are looking at documentation for an older release. Not what you want? See the current release documentation.

In eXo Platform, Javascript scripts declared as modules are minified by default in order to reduce their size and therefore the data volume when downloaded in web page.

This minification may lead to conflicts and errors when the script is incompatible with eXo Platform minifier (Google Closure Compiler).

Starting from eXo Platform 5.0, this minification can be disabled with the new module attribute 'minify' :

<minify>false</minify>

This option could be set in gatein-resources.xml in script tag:

<module>
				<name>myModule</name>
				<script>
				  <path>/javascript/myScript.js</path>
				  <minify>false</minify>
				</script>
			</module>
			

Note

We highly recommend to always enable scripts minification. If you have conflicts, take care to not deactivate minification in the whole platform.

To use this new option, the new XSD 1.4 should be used.

Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus