Du viser støtteinnhold for versjon:
- 6.4
- 6.3
- 6.2
- Eldre versjoner
Minification removes from the source code the redundant characters, such as white space, new line, and comments. This improves the performance by reducing the size of the code. While minification does not impact the functionality, it reduces the readability of the code.
To generate minified code for semantic changes follow these steps.
-
Merk:
See Introduction to Customizing AEM Forms workspace for more details about the packages.
-
Update paths in main.js located under client-html/src/main/webapp/js, for added/updated models/views.
For example, addition of a new Sharequeue model, say mySharequeue, change:
sharequeuemodel : pathprefix + 'runtime/models/sharequeue', To sharequeuemodel : pathprefix + 'runtime/myModels/mySharequeue',
-
Update registry-config.xml, located at client-html/src/main/webapp/js/resource_generator, in case there is change/addition of alias in main.js.
For example, addition of a new Sharequeue model, say mySharequeue, change:
<sharequeue name="sharequeue" path="runtime/models/sharequeue.js" service="service"/> To <sharequeue name="sharequeue" path="runtime/myModels/mySharequeue.js" service="service"/>
Merk:
Minification will only work on 64-bit JVM.
Merk:
If you minify, upgrade is impacted.