Relative Content

Tag Archive for javascripthtmlvisual-studio-codeliveserver

Use common directory for JS modules with apps in different directorys

Using vscode Live Server, I’m loading an HTML file that lives in App1 (see below). The HTML has a tag to include my JS app and another to include another JS library needed by the app. The library is in the parent directory in a subdirectory (JS/lib). I’d like to keep the file separate as I have several apps that live in their own directory and need the same library. I’d rather not have to make copy for each app if possible. Is there a way to configure Live Server to serve both my app and the common library?