live-server icon indicating copy to clipboard operation
live-server copied to clipboard

Live reload not working with .. (parent directory) used as path

Open rterekhov opened this issue 5 years ago • 1 comments

Before submitting an issue, please, see https://github.com/tapio/live-server#troubleshooting

Issue description

Live reload not working with: live-reload .. Workaround is: live-reload ../../dist

Software details

  • Command line used for launching live-server: live-server ..
  • OS: Arch Linux
  • Browser (if browser related): Chromium 72
  • Node.js version: 11.10
  • live-server version: 1.2.1

rterekhov avatar Feb 16 '19 17:02 rterekhov

I was also bit by this, and I found another workaround:

live-server `node -e 'console.log(require("path").resolve(".."))'`

qqnluaq avatar Oct 14 '20 18:10 qqnluaq