eleventy icon indicating copy to clipboard operation
eleventy copied to clipboard

Can’t alias a non-core template syntax (one added via plugin or addExtension)

Open ahmadnassri opened this issue 1 year ago • 4 comments

Operating system

Linux / Debian

Eleventy

2.0.0

Describe the bug

attempting to use .html file extension for .webc files with the new aliasing feature in 2.0

config.addExtension("11ty.html", {
  key: "11ty.webc"
})

no success.

Reproduction steps

  1. config.addExtension("11ty.html", { key: "11ty.webc" })
  2. rename an existing .webc component to .html
  3. npx @11ty/eleventy --serve
  4. component is not rendered

Expected behavior

aliasing .webc components should work across all files (components / pages / layouts / etc ...).

Reproduction URL

No response

Screenshots

No response

ahmadnassri avatar Feb 26 '23 14:02 ahmadnassri