-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
This issue was originally filed by kylethay...@gmail.com
It would be useful to be able to set the default web document root for a project so that whenever I run a file in a project through the dart editor I get for [c:\project_directory/html/example.html] :
http://xxx.xxx.xxx.xxx:3030/html/example.html
instead of
http://xxx.xxx.xxx.xxx:3030/C:/project_directory/html/example.html
That way you can write an absolute URI to an image or another page (project_directory/image/example-image.png) i.e.
<img src='/image/example-image.png' />
and have it load the image correctly no matter the initial location of the html file I ran using the dartium option within the dart editor.
It would also be a great idea to have the ability to change the web document root for a specific launch within the 'Manage Launches' menu so that you can adapt to specific scenarios you want to try, in case you want to split your project into smaller pieces you can test each individually.