asset_optimizer Pro
Image asset optimization (SVG, PNG, JPEG). Adds the assets command to the base monorepo_toolkit.
Version: 1.0.0
Variables
| Variable | Type | Default | Description |
|---|---|---|---|
| appName | string | MyApp | The name of your application |
| isForMonorepo | boolean | true | Whether this is being generated as part of a monorepo |
Usage
Interactive
bash
archipelago generate asset_optimizerNon-interactive (CI)
bash
archipelago generate asset_optimizer --config my_config.jsonConfig Template
json
{
"@appName": "The name of your application",
"appName": "MyApp",
"@isForMonorepo": "Whether this is being generated as part of a monorepo",
"isForMonorepo": true
}Generated Structure
devtools/
└── scripts/
└── asset_optimizer/
├── lib/
│ ├── asset_optimizer.dart
│ └── src/
│ └── assets_command.dart # SVG, PNG, JPEG optimization
└── pubspec.yaml