Compressing JavaScript Code
Compressing JavaScript Code
If you make changes to following JavaScript files, you can test them by running Web Central in debug mode (app.debug=true in core.properties):
- Core controls in the schema\ab-core\controls folder
- Home Page framework in the schema\ab-core\page-navigation\js folder
- Building Operations Console in the schema\ab-products\bldgops\common\console folder
Web Central loads compressed Java Script code in production mode (app.debug=false in core.properties). To prepare your changes for production use, compress files as follows:
- Open the Gradle Tasks view and wait for tasks to load.
- Expand the webcentral-war-root / build tree node.
- Select the appropriate task.
- Right-click and select "Run Gradle Tasks".
The tasks are:
Task | Description | Output |
---|---|---|
minifyJsCore | Core controls | schema\ab-core\ab-core.js |
minifyJsPgNav | Home Page framework | schema\ab-core\ab-pgnav.js |
minifyOpsConsoleJS | Building Operations Console | schema\ab-products\bldgops\common\console\ab-bldgops-console-all-min.js |