tree: 7116004e6c1387fa659ea8548631c1e3e1a3938c [path history] [tgz]
  1. app_with_asset_treeshaking/
  2. package_with_assets/
  3. README.md
pkgs/hooks/example/link/README.md

The examples in this folder illustrate how to use information from the Dart treeshaking to “link” assets.

  • app_with_asset_treeshaking/ calls some methods from package_with_assets.
  • package_with_assets/ contains a library with two assets and code which uses these assets. It declares these assets in a build.dart hook, and treeshakes them based on the “resources” collected during the kernel compilation.