dartdart-pubdart-webui

How to run Pub.build() in Dart 2


In Dart 1.x, there was a command, that you could trigger e.g. from grinder.dart. But this line works no longer:

Pub.build();

How can I replace it and run build command of my web app from Dart code?


Solution

  • I fixed it by calling webdev build directly