Pub for the Web
You can use the pub
tool to manage Dart packages and assets. For more information, see
Assets and Transformers.
Pub also has specialized commands to support web development.
pub serve command starts up a dev server.
pub build command builds a deployable version of your app,
running any required transformers.
To learn more, see the following reference pages:
pub serves or builds an app, it can run one or more
transformers—for example, one transformer converts Dart
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 about transformers on dartlang.