Skip to content

Commit a4081ba

Browse files
committed
Docs for #108
1 parent 706de47 commit a4081ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ let { html, css, js, components } = await page.compile();
299299

300300
By default, `<style>` and `<script>` elements in component files are removed from individual component markup and aggregated together for re-use elsewhere (you could write this to a file, or use as Critical CSS in another layout template—the Eleventy plugin will smooth this over for you). _This includes `<link rel="stylesheet">` and `<script src>` when the URLs point to files on the file system ([remote URL sources are not yet supported](https://github.com/11ty/webc/issues/15))_.
301301

302-
Note that if a `<style>` is nested inside of [declarative shadow root](https://web.dev/declarative-shadow-dom/) template (e.g. `<template shadowroot>`), it is also left as is and not aggregated.
302+
Note that if a `<style>` is nested inside of [declarative shadow root](https://web.dev/declarative-shadow-dom/) template (e.g. `<template shadowrootmode>` or the deprecated `<template shadowroot>`), it is also left as is and not aggregated.
303303

304304
You can also opt out of aggregation on a per-element basis using `<style webc:keep>` or `<script webc:keep>`.
305305

0 commit comments

Comments
 (0)