Skip to content

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

Open
@ahmadnassri

Description

@ahmadnassri

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions