Skip to content

Output Configuration

highsource edited this page Dec 23, 2014 · 2 revisions

Synopsis

<jsonix:output
  naming="compact|standard"
  fileName="${module.name}.compact.js"/>

Configures output (naming strategy and file name pattern) for modules.

Configuration attributes

  • naming, optional - specifies whether compact or standard naming should be used. If omitted, the standard naming will be used.
  • fileName, optional - file name pattern for the generated files. Supports the special ${module.name} expression which will be substituted with the module name. If omitted, will be generated automatically based on the effective naming:
    • ${module.name}.js if naming is standard.
    • ${module.name}.compact.js if naming is compact.

Module output configuration

If the output is configured within module, it will be used to write out the module's JavaScript. Every output configured for the module will generate its own JavaScript file (named based on the fileName pattern) using the configured naming strategy (determined based on the naming attribute).

Default output configuration

If the output is configured on the top level (i.e. not within any module), it provides default output configuration for modules. If some module does not declare any output configuration, default output configuration will be applied. If no default output is configured on the top level, at least one default output configuration will be created implicitly, based on the default naming strategy.

Clone this wiki locally