tapio / live-server

A simple development http server with live reload capability.
http://tapiov.net/live-server/
4.43k stars 484 forks source link

Attempting to load my CSS stylesheet as a folder instead of a file #306

Open megseoh opened 5 years ago

megseoh commented 5 years ago
Before submitting an issue, please, see https://github.com/tapio/live-server#troubleshooting

Issue description

When I run live-server on the command line in home directory for my project, it loads my index.html but does not load my stylesheet css/style.css. It's looking for a directory instead of a file. This is what appears in my Terminal:

Error: ENOTDIR: not a directory, stat '/Users/path_to_project/css/style.css/' GET /css/style.css/ 500 0.379 ms - 278

In the <head> of index.html: <link rel="stylesheet" href="css/style.css">

Software details