Copy client-html/src/main/webapp/js from src-package on filesystem.
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.
-
Note:
See Introduction to Customizing HTML 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"/>
-
At client-html/src/main/webapp/js/minifier, run command:
mvn clean install
It generates a folder minified-files, under client-html/src/main/webapp/js with minified main.js and registry.js.
Minification will only work on 64-bit JVM.
If you minify, upgrade is impacted.
More like this
- Introduction to Customizing HTML Workspace
- Generic steps for HTML Workspace customization
- Managing tasks in an organizational hierarchy using Manager View
- Integrating Correspondence Management in HTML Workspace
- Single Sign On and timeout handlers
- Displaying the user avatar
- Displaying information in the Task Summary pane
- Changing the organization logo
- Changing the color scheme of the interface
- Changing the font on the interface
- Changing the locale of the user interface
- Customizing error dialogs
- Customizing tabs for a task
- Customizing Task Actions
- Customizing the listing of process instances
- Customizing the task Details page
- Displaying additional data in ToDo list
- Getting Task Variables in Summary URL/content/help/en/livecycle/help/html-workspace/changing-font-interface.html
- Images for Route Actions
- Creating a new login screen
- Minification of the JavaScript files
- Sorting of Tracking tables and adding more columns
- Updating the link to the documentation
- Hosting two HTML Workspace instances on one server