You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, for index.html be able to link to main.js, servor must run in the project-root folder and the script tag in html must be <script src="../src/main.js">
$ cd~/project-root
$ servor .
It would be really useful to allow servor to serve more folders than just the root. Something like:
This would serve the ./src folder as if it and ./static were the same.
So the index.html would link the script at same level (<script src="./main.js">)
The --extern param could be repeatable to allow multiple entrypoints
Duplicate paths (e.g.: ./static/style.css, ./src/style.css and ./libs/style.css) could be served in order (left-to-right), returning the first found path.
The text was updated successfully, but these errors were encountered:
NemoStein
added a commit
to NemoStein/servor
that referenced
this issue
Sep 6, 2021
Consider the following project tree:
Currently, for
index.html
be able to link tomain.js
, servor must run in theproject-root
folder and the script tag in html must be<script src="../src/main.js">
It would be really useful to allow servor to serve more folders than just the root. Something like:
This would serve the
./src
folder as if it and./static
were the same.So the
index.html
would link the script at same level (<script src="./main.js">
)The
--extern
param could be repeatable to allow multiple entrypointsDuplicate paths (e.g.:
./static/style.css
,./src/style.css
and./libs/style.css
) could be served in order (left-to-right), returning the first found path.The text was updated successfully, but these errors were encountered: