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
Firstly, stoked for you guys to take the serve name space. As a long time user of npm serve, it's nice to see the package get some new owners and some new love.
That said, depending on async and await for this is a right pain in the ass for one major reason. You're forcing me to nvm use 7 everytime I want to use this library, which instead of meaning I can simply type cd blah/blah && serve I have to type cd blah/blah && nvm use 7 && serve. There in lies the PITA. Especially since most of my projects, and I have many (not publically on this github but on a private enterprise one) projects that are on LTS, switching is doable, but honestly a pain. I would hope you would consider potentially back porting if possible and if not, just supporting node LTS at the very most.
Phew I needed to say that. Now the important stuff.
Serving files like a webserver
I have an html page serving from a nested folder, and it references relative files that don't work.
The serve package currently tries to pull the file from http://localhost:53058/some/some.css, which is incorrect as my file is actually located in this location /some/folder/some.css.
I can work around this issue by appending an additional / to the url, e.g http://localhost:53058/some/folder/ and it fixes the issue but I would have expected this out of the box.
Recommendation
Update the route so that URL's are appended with / by default.
The text was updated successfully, but these errors were encountered:
ghost
changed the title
Major ~~release~~ PITA
Major ?release? PITA
Jan 13, 2017
Firstly, stoked for you guys to take the serve name space. As a long time user of npm serve, it's nice to see the package get some new owners and some new love.
That said, depending on async and await for this is a right pain in the ass for one major reason. You're forcing me to
nvm use 7
everytime I want to use this library, which instead of meaning I can simply typecd blah/blah && serve
I have to typecd blah/blah && nvm use 7 && serve
. There in lies the PITA. Especially since most of my projects, and I have many (not publically on this github but on a private enterprise one) projects that are on LTS, switching is doable, but honestly a pain. I would hope you would consider potentially back porting if possible and if not, just supporting node LTS at the very most.Phew I needed to say that. Now the important stuff.
Serving files like a webserver
I have an html page serving from a nested folder, and it references relative files that don't work.
An example
Html location: http://localhost:53058/some/folder
File location
The serve package currently tries to pull the file from
http://localhost:53058/some/some.css
, which is incorrect as my file is actually located in this location/some/folder/some.css
.I can work around this issue by appending an additional
/
to the url, e.ghttp://localhost:53058/some/folder/
and it fixes the issue but I would have expected this out of the box.Recommendation
Update the route so that URL's are appended with
/
by default.The text was updated successfully, but these errors were encountered: