https://github.com/11ty/eleventy-plugin-webc
Adds support for WebC *.webc files to Eleventy
https://github.com/11ty/eleventy-plugin-webc
custom-elements eleventy web-components
Last synced: 10 days ago
JSON representation
Adds support for WebC *.webc files to Eleventy
- Host: GitHub
- URL: https://github.com/11ty/eleventy-plugin-webc
- Owner: 11ty
- Created: 2022-09-23T20:38:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-28T20:19:09.000Z (3 months ago)
- Last Synced: 2025-04-10T19:49:14.416Z (11 days ago)
- Topics: custom-elements, eleventy, web-components
- Language: JavaScript
- Homepage: https://www.11ty.dev/docs/languages/webc/
- Size: 90.8 KB
- Stars: 122
- Watchers: 7
- Forks: 10
- Open Issues: 43
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eleventy-plugin-webc 🕚⚡️🎈🐀
Adds support for [WebC, the single file web component format](https://github.com/11ty/webc), to Eleventy.
* [This documentation has moved to 11ty.dev](https://www.11ty.dev/docs/languages/webc/).
* Watch the [crash course in Eleventy WebC on YouTube](https://www.youtube.com/watch?v=X-Bpjrkz-V8).
* Watch the [Interactive Components tutorial on YouTube](https://www.youtube.com/watch?v=p0wDUK0Z5Nw)[](https://www.npmjs.com/package/@11ty/eleventy-plugin-webc)
- Star [Eleventy on GitHub](https://github.com/11ty/eleventy/)!
- Follow us on Twitter [@eleven_ty](https://twitter.com/eleven_ty)
- Support [11ty on Open Collective](https://opencollective.com/11ty)
- Subscribe to our [YouTube channel](https://11ty.dev/youtube)## [Documentation](https://www.11ty.dev/docs/languages/webc/)
This documentation has [moved to 11ty.dev](https://www.11ty.dev/docs/languages/webc/).
## Features
* Brings first-class **components** to Eleventy.
* Expand any HTML element (including custom elements) to HTML with defined conventions from web standards.
* This means that Web Components created with WebC are compatible with server-side rendering (without duplicating author-written markup)
* WebC components are [Progressive Enhancement friendly](https://www.youtube.com/watch?v=p0wDUK0Z5Nw).
* Get first-class **incremental builds** (for page templates, components, and Eleventy layouts) when [used with `--incremental`](https://www.11ty.dev/docs/usage/#incremental-for-partial-incremental-builds)
* Streaming friendly (stream on the Edge 👀)
* Easily scope component CSS (or use your own scoping utility).
* Tired of importing components? Use global or per-page no-import components.
* Shadow DOM friendly (works with or without Shadow DOM)
* All configuration extensions/hooks into WebC are async-friendly out of the box.
* Bundler mode: Easily roll up the CSS and JS in-use by WebC components on a page for page-specific bundles. Dirt-simple critical CSS/JS to only load the code you need.
* For more complex templating needs, render any existing Eleventy template syntax (Liquid, markdown, Nunjucks, etc.) inside of WebC.
* Works great with [is-land](https://www.11ty.dev/docs/plugins/partial-hydration/) for web component hydration.