When using the --open=PATH option, for example if serving from src folder, paths in index.html aren't resolved relative to src. E.g. <link rel="stylesheet" type="text/css" href="styles.css" media="screen" /> will not find the CSS file because it is not located at root but under src.
live-server does this automatically.
Unfortunately this prevents me from using the module. :/
When using the
--open=PATH
option, for example if serving fromsrc
folder, paths inindex.html
aren't resolved relative tosrc
. E.g.<link rel="stylesheet" type="text/css" href="styles.css" media="screen" />
will not find the CSS file because it is not located at root but undersrc
.live-server
does this automatically. Unfortunately this prevents me from using the module. :/