You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing documentation for running/debugging Dart webapp #3824
That then when I did "F5" launched the app and launched Chrome just as it does when I run webdev serve --debug manually.
So it seems the trick is to know to set program to set your html file entry point (instead of the dart file as you would for say cli apps). It might be good to update the docs page on dartcode.org about this to help future dart webapp devs use this nice quality of life feature in Dartcode 🙂
But I couldn't see an example of how to do it for a Dart (not flutter) webapp project.
It was mentioned in a comment on that page, but it wasn't very obvious:
// The entry script to execute when running the app.
// Set to a "web" in a Dart web app to run in web move.
// Set to "test" in an app with tests to run all tests.
"program": "bin/main.dart",
I've linked the text "Run Dart (non-Flutter) web apps" to a new page that is specifically about this. Thanks!
Activity
DanTup commentedon May 30, 2022
It was mentioned in a comment on that page, but it wasn't very obvious:
I've linked the text "Run Dart (non-Flutter) web apps" to a new page that is specifically about this. Thanks!
Add some additional notes about running Dart web apps