Documentation
assetopt docs
Everything about the free CLI. Prefer the source? It all lives in theREADME on GitHub.
Reference
Exhaustive, field-by-field references for the CLI and the config file.
CLI reference
Every assetopt command, flag, and exit code: init, analyze, optimize, audit, and clean.
Configuration reference
Every .assetoptrc field with its type, default, and constraints — presets, formatMatrix, and resolution order.
Feature catalog
Every assetopt feature explained: per-asset optimization, smart WebP/AVIF routing, incremental cache, and the CI quality gate.
FAQ
Common assetopt questions: safety, comparisons with imagemin/squoosh, framework integration, caching, and format support.
Workflows
End-to-end integration patterns — pick the one that matches your setup.
CI pre-deploy on dist/
Optimize your built dist/ in CI right before deploy — recompress safely without breaking asset references.
Hand-written static site
Use assetopt as a pure recompressor on a hand-written site: shrink every asset while keeping filenames intact.
Asset prep before integration
Prep raw assets with the web-perf preset before you write the markup — the workflow where format conversion is safe.