On this page

Pub for the Web

Send feedback

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. The pub serve command starts up a dev server. The pub build command builds a deployable version of your app, running any required transformers.

To learn more, see the following reference pages:

Writing transformers

When pub serves or builds an app, it can run one or more transformers—for example, one transformer converts Dart files into a single JavaScript file.

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.