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

Can't serve a directory and watching a sub-directory #116

Open
DamienCassou opened this issue Mar 17, 2021 · 0 comments
Open

Can't serve a directory and watching a sub-directory #116

DamienCassou opened this issue Mar 17, 2021 · 0 comments

Comments

@DamienCassou
Copy link

I have the following directory structure:

$ tree .
.
├── build
│   └── foo.js
└── index.html

$ cat index.html
<html>
  <head>
    <title>foo</title>
  </head>
  <body>
  </body>
  <script>
    console.log(new Date().toTimeString());
  </script>
</html>

I would like devd to (1) serve files from the top-directory (basically index.html) and (2) reload when build/foo.js (or any other file in build/ changes). In particular, I don't want devd to reload if index.html (or any other file outside of build/) is changed.

I have tried several alternatives with no success:

  • devd -w build/ -l .: reloads when index.html is changed (and I don't want that)
  • devd -w build/ -L .: never reloads, even if build/foo.js is changed
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