Skip to content
This repository has been archived by the owner on Jul 9, 2023. It is now read-only.

npx @11ty/eleventy doesn't finish #10

Closed
ghost opened this issue Apr 5, 2021 · 1 comment
Closed

npx @11ty/eleventy doesn't finish #10

ghost opened this issue Apr 5, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 5, 2021

With this configuration:

const loader = new FileMinifyLoader("src/includes", {
  watch: true,
  noCache: false,
});
const nunjucksEnvironment = new Nunjucks.Environment(loader);

eleventyConfig.setLibrary("njk", nunjucksEnvironment);

The command npx @11ty/eleventy hangs after copying files. The same command with the --serve flag works fine.

Switching out the config for the default config (provided below) doesn't hang.

const nunjucksEnvironment = new Nunjucks.Environment(
    new Nunjucks.FileSystemLoader("src/includes")
  );

eleventyConfig.setLibrary("njk", nunjucksEnvironment);

So it has to be an issue with this module... Any help?

@ghost
Copy link
Author

ghost commented Apr 5, 2021

This is because of watch: true. Setting it to false fixes it. Oops.

@ghost ghost closed this as completed Apr 5, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants