zip

zip controls whether addfox build packs the output directory into a zip file (e.g. for store upload or distribution). Only affects build; dev does not produce a zip.

Type and default

  • Type: boolean | undefined
  • Default: true (zip is produced)

Behavior

  • true or omitted: After build, creates {outDir}.zip under outputRoot, e.g. .addfox/extension.zip, containing the full outDir contents.
  • false: Only outputs the directory, no zip.

Examples

Default (zip on)

export default defineConfig({
  outDir: "extension",
  outputRoot: ".addfox",
  // zip true → .addfox/extension.zip
});

Disable zip

export default defineConfig({
  zip: false,
  // only .addfox/extension, no zip
});