Skip to content

Configuration Reference ​

acodez is designed to be zero-config out of the box, but offers flexible configuration via package.json or an optional acodez.config.js.


1. package.json Configuration ​

Add the "acodez" key to your project's package.json:

json
{
  "name": "com.example.myplugin",
  "version": "1.0.0",
  "acodez": {
    "obfuscate": true
  }
}
OptionTypeDefaultDescription
obfuscatebooleanfalseEnables javascript-obfuscator during acodez build

Command Override

You can override obfuscation from the terminal at any time:

bash
acodez build -o         # Force obfuscate
acodez build --no-obfuscate # Force disable obfuscation

2. Advanced acodez.config.js (Optional) ​

For advanced builds that require custom esbuild plugins, loaders, or aliases, create an acodez.config.js in the root of your project:

javascript
export default {
  obfuscate: false,
  loader: {
    ".svg": "text"
  }
};

Any options exported from acodez.config.js are deeply merged into esbuild's configuration.


3. Platform & Target ​

acodez targets chrome90 (IIFE bundle format), matching modern Acode Android WebViews. You can safely use modern ECMAScript features:

  • async / await
  • Optional chaining (?.)
  • Nullish coalescing (??)
  • ES Modules (import / export)
  • SASS / SCSS imports

Built with precision by Rugved.