The laxar-dist-js Task

For a given flow target, uses r.js to create an optimized JavaScript bundle.

The generated JavaScript bundle is stored under {dest}/{target}/dist/bundle.js and is accompanied by a source map located at {dest}/{target}/dist/bundle.js.map. Here, dest refers to the configured destination directory (usually var/flows), target corresponds to the flow target that was specified when running the task, and theme is the full name of an application theme, or default.theme.

Overview

Note: This task is an internal building block used by the grunt-laxar main tasks, and not considered a part of the stable API.

Run this task with the grunt laxar-configure laxar-dist-js:{target} command.

The possible targets are determined by the configuration which is generated by the laxar-configure task. If used without laxar-configure, the task targets, files and options may be specified manually according to the grunt Configuring tasks guide.