When pub serves, builds, or runs an app, it can run one or more transformers. (Learn more about pub.)
Transformers operate on assets, where an asset is a resource, such as a Dart file, a CSS file, or an image, that is intended to be part of a deployed package. (Learn more about assets and transformers.)
The following are examples of custom transformers written using the barback package. The description for each example states where you can get more information about that particular example.
All of these examples are part of the barback repo on GitHub.
To run an example, first clone or download the barback repo.
Then under the
create an empty
web directory, and run
pub build to generate the assets.
Pub transforms the sample assets (located in
and places them under