Output Targets
Output targets decide what Stencil builds from your components. Configure them in the outputTargets array of stencil.config.ts. With none configured, Stencil builds loader-bundle, the usual choice for a component library; add www to build a complete web app.
Main
The main output targets build your components for the browser or a server:
loader-bundle: lazy-loaded bundle for CDN and npm distribution (formerlydist)standalone: one custom element module per component (formerlydist-custom-elements)ssr: server-side rendering module (formerlydist-hydrate-script)ssr-wasm: thessrmodule as WebAssembly, for servers in other languageswww: a complete web app
Documentation
Documentation targets generate docs from your components' source and JSDoc: docs-readme, docs-json, docs-custom-elements-manifest, docs-vscode, docs-agent-skill, docs-custom, and stats.
Assets
global-style: global stylesheetsassets: files your components reference, such as icons and images
Supporting Outputs
types: TypeScript type declarations, generated in production buildscollection: transpiled source for other Stencil projects to re-bundle, generated in production builds- Copy tasks: copy other files into an output target's directory