asset_builder 1.1.1 asset_builder: ^1.1.1 copied to clipboard
Code generator for asset files uri
Create Code for asset files addresses
Installation #
$dart pub global activate asset_builder // this will enable the `build_assets` cli command
or alternatively for each project:
$dart pub add asset_builder --dev // this way in order to use the cli you have to call `dart run asset_builder` instead of `build_assets`
Usage #
# if activated globally:
build_assets -o lib/app/assets/assets.dart -f
# if using as a dev dependency:
dart run asset_builder -o lib/app/assets/assets.dart -f
// then in code:
'assets/icons/logo.svg' => $assets.icons.logoSvg