Skip to content

New files not processed in watch mode with non-default input directory #4270

Description

@Aankhen

Operating system

Windows 10

Eleventy

3.1.5

Describe the bug

With this configuration:

export default async function configure(eleventyConfig) {
  return {
    dir: { input: "source" },
  };
}

If I run eleventy --serve and add a new file, it shows a ‘File added’ line and reruns the build, but it doesn’t process the new file. I verified that this is unchanged with the latest canary and that it happens with any other directory name too, not just source.

Reproduction Source Code URL

https://github.com/Aankhen/eleventy-watch-issue

Screenshots

eleventy-watch-not-processing-new-file.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature: ⏱️ watchDoesn’t affect primary builds, only subsequent builds during --watch and --serveneeds-triage

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions