Release builds use Google's Closure Compiler with its ADVANCED_OPTIMIZATIONS mode to minimize the generated JavaScript. It is possible to configure it to use SIMPLE_OPTIMIZATIONS or WHITESPACE_ONLY instead, which are less aggressive. We have a -js-compiler-option option in Royale to pass options to Closure Compiler.
-js-compiler-option+="--compilation_level SIMPLE_OPTIMIZATIONS" Some additional relevant documentation about minification that probably takes precedence over the empty Minification-Notes page that you mentioned: https://apache.github.io/royale-docs/create-an-application/optimizations/minification -- Josh Tynjala Bowler Hat LLC https://bowlerhat.dev/ On Wed, Mar 18, 2026 at 6:37 AM Andrew Wetmore <[email protected]> wrote: > Hi: > > We have a stub page about minification on a repository wiki: > https://github.com/apache/royale-asjs/wiki/Minification-Notes > > This page is from nine years ago. Is minification baked into our compile > and release processes, or is this something that people need to make > decisions about and therefore should have some guidance on this page to > turn to? > > > Andrew Wetmore >
