+2
Relative path against a folder
When I use HTML and CSS files, I have to rewrite every path that is in code. Why don't you make every path relative to its super directory? That's what I mean: in the Files view, I create a new folder called Project, where I put every file that belongs to that project. Inside it I create and index.html file and a folder called "images". Now when I write the code I would like that paths should be written as /images/image.png instead of adding even the main folder name like /Projects/images/image.png
This would improve the user experience, I think.
Customer support service by UserEcho
The architectures I work with heavily favor root-relative paths for the majority of things, so it would be very nice if there was a way for us to specify the root directory for the local server for the preview, so that if we want to use root-relative paths we don’t have to manually update them on every file or use a build tool to correct them before deploying.
The ideal implementation of that for me would look something like a toggle in the Web Preview settings to have the root set (on preview launch) to the highest ancestor directory that contains an index.html, or something like that.