Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live Server won't reload or inject nested CSS files on change. (WSL) #385

Closed
rudah-amaral opened this issue Dec 12, 2021 · 1 comment
Closed

Comments

@rudah-amaral
Copy link

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

Issue description

  • Expected behavior: When saving CSS files (even when they are nested inside the root) re-inject them or reload the tab.
  • Actual behavior: CSS files are only re-injected when on root level.
  • Steps to reproduce:
  1. Move CSS file to a nested folder.
  2. Change index.html link href attribute accordingly.
  3. Change a style and save it. Tab won't reload.

Software details

Neovim 0.6 on WSL 2

  • Command line used for launching live-server: live-server
  • OS: Windows 10 Pro 21H2 Build 19044.1387
  • Browser (if browser related): Firefox 95.0 (64-bit)
  • Node.js version: 17.0.1
  • live-server version: 1.2.1
@rudah-amaral
Copy link
Author

rudah-amaral commented Dec 14, 2021

Update

Apparently, moving my project inside WSL filesystem fixed the issue. I suspect it's related with how live-server handles path separators but I'm not sure. Leaving this here to anyone to anyone who might encounter this problem in the future.

@rudah-amaral rudah-amaral changed the title Live Server won't reload or inject nested CSS files on change. Live Server won't reload or inject nested CSS files on change. (WSL) Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant