Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dcharkes committed Jan 15, 2025
1 parent 812ca6c commit da7f8eb
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions pkgs/native_assets_cli/lib/src/config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -621,16 +621,9 @@ final class HookConfig {
/// separately for different asset types.
///
/// This means that hooks should be written in a way that they are a no-op if
/// they are invoked for an asset type that is not emitted by the hook:
///
/// ```dart
/// if (input.config.buildAsstTypes.contains('some_asset_type')) {
/// // Emit some asset.
/// }
/// ```
///
/// Most asset extensions provide a shorthand. For example, `CodeAsset`s can
/// be used as follows:
/// they are invoked for an asset type that is not emitted by the hook. Most
/// asset extensions provide a to check [buildAssetTypes] for their own asset
/// type. For example, `CodeAsset`s can be used as follows:
///
/// ```dart
/// if (input.config.buildCodeAssets) {
Expand Down

0 comments on commit da7f8eb

Please sign in to comment.