简体   繁体   中英

Dart without Dart-Editor: Refreshing

I'm trying to program in Dart but without the Dart-Editor. It works fine so far but its really annoying and slow to always call pub build after making a change to either html/css or dart code.

As far as I remember when launching the app with Dart-Editor you just have to refresh the page.

Is it possible to get this working without the editor?

Thanks!

You can use pub serve which is similar to the webserver integrated in the Darteditor. If you are using Dartium as browser you can add --no-dart2js so pub serve doesn`t generate JavaScript (which is slow) but directly serves Dart which Dartium can process directly.

For other browsers it's of course convenient to use the integrated dart2js conversion.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM