native icon indicating copy to clipboard operation
native copied to clipboard

[doc] Document how to do `build.dart` that uses system libraries

Open dcharkes opened this issue 1 year ago • 0 comments

It should output assets with AssetSystemPath.

/// Asset is avaliable on the system `PATH`.
///
/// [uri] only contains a file name.
abstract class AssetSystemPath implements AssetPath {
  Uri get uri;

  factory AssetSystemPath(Uri uri) = model.AssetSystemPath;
}

We should also document how to set up your path correctly.

Also, we should double check if only using the file name + path works in all cases or if we need to support absolute paths as well.

The dependencies in the BuildOutput should contain build.dart (or one will always get a cached list of assets).

dcharkes avatar Jan 17 '24 14:01 dcharkes