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?
/project
-- JS
lib
library.js
-- App1
index.html # loads library.js
app1.js
style.css
-- App2
index.html # loads library.js
app2.js
style.css
1