Let’s say you have a scenario where you want to build a simple web stack (html/css/js) prototype to share with someone.
I am a little unclear on whether or not I want/need to use a small web-server to do so or whether it is appropriate to recommend opening the root html file (lets say
index.html) locally in your browser.
index.html file, it will reference other local js/css files like so:
<head> <script src="./test.js"></script> </head>
This seems to work fine for me locally in Chrome, but I am curious if there are any drawbacks/limits to using this approach that aren’t immediately obvious, I was having trouble finding documentation on how this works compared to setting up a local web server.