-
Notifications
You must be signed in to change notification settings - Fork 15
Options
The Aggregator supports the setting of deployment specific options through the use of a properties file named aggregator.properties
in the home directory of the user that launched the server (the default), or in a properties file named using the options
servlet init-param.
Default options for the application may be specified in aggregator.properties
located in the root folder of the bundle defining the servlet.
The following options may be specified in the properties file, or set while the server is running using the setoption
console command.
Option name | Description |
---|---|
developmentMode |
Development mode enables the following features:
|
debugMode |
Debug (and development) mode enables the following features:
|
sourceMaps |
If true, then source map support will be enabled. The default value is false. The sourcemaps servlet query arg is recognized only if this option is true.
|
disableHasFiltering | If true, then the aggregator will not perform has.js feature trimming of javascript code. The default value is false. |
disableRequireListExpansion | If true, then the dependency lists in require() calls will not be expanded to include nested dependencies even if dependency list expansion was specified in the request. The default value is false. |
disableHasPluginBranching | If true, then has! loader plugin branching will be disabled during require list expansion. |
deleteDelay | Specifies the delete delay timeout. This is the amount of time, in seconds, to wait before deleting cache files from the file system after a cache file is no longer needed. The purpose of delaying the deletion of cache files is to allow all request threads that may be using the file to complete before the file is removed. The default value is 3 minutes, however, expired cache files may be deleted before the deleteDelay timeout has expired if the server is shut down. |
verifyDeps | <a name="verifydeps" If true, then the server will verify the declared dependencies of AMD modules against the stored dependencies that were used to build the module dependency graph used in require list expansion, whenever a module is built/compiled and development mode is enabled. The default value is true. Set this option to false to disable verification of declared dependencies when development mode is enabled. |
cacheDirectory |
Specifies a directory on the server that will be used for the Aggregator cache. If not specified, then the state location for the bundle defining the Aggregator servlet is used. Note: If you specify a Microsoft Windows based file system path using forward slashes, be sure to escape them (e.g. c:\\temp) or they won't be read properly. Alternatively, you may specify path separators using the back slash on any OS platform. |
cacheBust |
Specifies an arbitrary string that will be combined with the cacheBust property to generate the cache bust string used for server-side dependency map and cache validation as well as specifying the value of the cb query arg in loader generated Aggregator requests. This options is provided to allow system administrator to change the cache bust value for a deployment without the need for modifying the application's loader config. This may be necessary when customizing an app (see Override URIs) |
The Aggregator supports the following console commands relating to server options:
aggregator getoptions
- Lists the currently defined options and their values.
aggregator setoption <propname> <propvalue>
- Persistently sets the specified option to the specified value (aggregator.properties is updated)