11ty / 11ty/dev-server

New `watch` option pointing directly at Eleventy output folder will trigger two reload events

Open
#44 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
109
Forks
20
Avg merge
1m
Merged PRs (30d)
1

Description

One from Eleventy, one from the dev server.

e.g. watch: ["_site"]

Follow up to #19.

https://github.com/11ty/eleventy-dev-server/blob/ca8c8e9a8664f60551816ef86ca2f69d73cc8005/server.js#L82

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at server.js line 82 and review how a watch option pointing at _site is handled. Reproduce with watch: ["_site"] and confirm the two reload events described in the issue. Done means the Eleventy output-folder watch no longer causes duplicate reloads.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.