Skip to content

Instantly share code, notes, and snippets.

Last active Sep 29, 2020
What would you like to do?
asconfig.json: How to use the "extends" field to define different options for debug and release builds
"config": "air",
"compilerOptions": {
"source-path": "src"
"application": "src/MyProjectDebug-app.xml",
"mainClass": "MyProject"
"extends": "asconfig.json",
"application": "src/MyProjectRelease-app.xml"
Copy link

joshtynjala commented Aug 10, 2020

asconfig.json is the base file that defines most of the project's configuration options.

asconfig.release.json inherits everything from asconfig.json by using the extends field. It can override a subset of the configuration that needs to be different. In other words, asconfig.json is treated kind of like a template.

In this example, asconfig.json defines the options required for a debug build, while asconfig.release.json overrides the options that need to be different for a release build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment