Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions docs/config/extras.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,13 @@ For browsers that do not support shadow dom (IE11 and Edge 18 and below), slot i

### addGlobalStyleToComponents

By default, when using the [`globalStyle`](./01-overview.md#globalstyle) config setting, any assigned stylesheet will also be added as a [constructable stylesheet](../components/styling.md#constructable-stylesheets) to each component in the published library.
By default, when using the [`globalStyle`](./01-overview.md#globalstyle) config setting, any assigned stylesheet will also be added as a [constructable stylesheet](../components/styling.md#constructable-stylesheets) to each client-rendered component in the published library.

You can turn this behavior off by setting this flag to `false`.
If you want to also add the `globalStyle` to each component when rendering on the server
then set this to `true`. If your `globalStyle` sheet is large then doing this may bloat the size
of your SSR output when using [`declarative-shadow-dom`](../guides/server-side-rendering.md#serializeShadowRoot).

Setting this to `false` will stop `globalStyle` from being added to any component.

### additionalTagTransformers

Expand Down
8 changes: 6 additions & 2 deletions versioned_docs/version-v4.43/config/extras.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,13 @@ For browsers that do not support shadow dom (IE11 and Edge 18 and below), slot i

### addGlobalStyleToComponents

By default, when using the [`globalStyle`](./01-overview.md#globalstyle) config setting, any assigned stylesheet will also be added as a [constructable stylesheet](../components/styling.md#constructable-stylesheets) to each component in the published library.
By default, when using the [`globalStyle`](./01-overview.md#globalstyle) config setting, any assigned stylesheet will also be added as a [constructable stylesheet](../components/styling.md#constructable-stylesheets) to each client-rendered component in the published library.

You can turn this behavior off by setting this flag to `false`.
If you want to also add the `globalStyle` to each component when rendering on the server
then set this to `true`. If your `globalStyle` sheet is large then doing this may bloat the size
of your SSR output when using [`declarative-shadow-dom`](../guides/server-side-rendering.md#serializeShadowRoot).

Setting this to `false` will stop `globalStyle` from being added to any component.

### additionalTagTransformers

Expand Down
Loading