Skip to content

Commit 2aa658e

Browse files
johnjenkinsJohn Jenkins
andauthored
feat: add excludeComponents doc (#1570)
Co-authored-by: John Jenkins <john.jenkins@nanoporetech.com>
1 parent 54961cc commit 2aa658e

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

docs/config/01-overview.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,20 @@ Stencil will cache build results in order to speed up rebuilds. To disable this
108108
enableCache: true
109109
```
110110

111+
## excludeComponents
112+
113+
*default: `[]`*
114+
115+
An array of component tag names to exclude from production builds.
116+
Useful to remove test, demo or experimental components from final output.
117+
118+
Supports glob patterns for matching multiple components:
119+
- `['demo-*']` - Excludes all components starting with "demo-"
120+
- `['*-test', '*-demo']` - Excludes components ending with "-test" or "-demo"
121+
- `['my-component']` - Excludes a specific component
122+
123+
Components matching these patterns will be completely excluded from all output targets when *not* using the `--dev` flag.
124+
111125
## extras
112126

113127
Please see the [Extras docs](./extras.md).

versioned_docs/version-v4.40/config/01-overview.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,20 @@ Stencil will cache build results in order to speed up rebuilds. To disable this
108108
enableCache: true
109109
```
110110

111+
## excludeComponents
112+
113+
*default: `[]`*
114+
115+
An array of component tag names to exclude from production builds.
116+
Useful to remove test, demo or experimental components from final output.
117+
118+
Supports glob patterns for matching multiple components:
119+
- `['demo-*']` - Excludes all components starting with "demo-"
120+
- `['*-test', '*-demo']` - Excludes components ending with "-test" or "-demo"
121+
- `['my-component']` - Excludes a specific component
122+
123+
Components matching these patterns will be completely excluded from all output targets when *not* using the `--dev` flag.
124+
111125
## extras
112126

113127
Please see the [Extras docs](./extras.md).

0 commit comments

Comments
 (0)