Skip to content

Instantly share code, notes, and snippets.

@daviddarnes
Created January 14, 2022 14:57
Show Gist options
  • Save daviddarnes/4f3ea4d266b6c15f2273f1f864a7615d to your computer and use it in GitHub Desktop.
Save daviddarnes/4f3ea4d266b6c15f2273f1f864a7615d to your computer and use it in GitHub Desktop.
Skip template files in development if they're too large
if (process.env.ELEVENTY_ENV === "development") {
// Skipping the search index file speeds up local builds
console.log("Skipping ./src/search.njk")
eleventyConfig.ignores.add("./src/search.njk")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment