https://github.com/netlogix/stencil-hydrate-server
Stencil output target to generate server for hydrating components
https://github.com/netlogix/stencil-hydrate-server
Last synced: about 2 months ago
JSON representation
Stencil output target to generate server for hydrating components
- Host: GitHub
- URL: https://github.com/netlogix/stencil-hydrate-server
- Owner: netlogix
- License: mit
- Created: 2023-04-14T08:53:14.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-26T06:23:56.000Z (8 months ago)
- Last Synced: 2025-03-05T14:19:06.356Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 433 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @netlogix/stencil-hydrate-server
A Stencil output target to generate server for hydrating components.
## Usage
To use this output target, add it to your `stencil.config.ts`:
```typescript
import { Config } from '@stencil/core';
import { hydrateServerOutputTarget } from '@netlogix/stencil-hydrate-server';export const config: Config = {
// ...
outputTargets: [
// ... other output targets
{
type: 'dist-hydrate-script',
dir: 'dist/hydrate',
},
hydrateServerOutputTarget({
dir: 'dist/hydrate-server',
}),
],
// ...
};
```This will generate server code for hydrating your Stencil components. You can then use the generated code to render your components on the server and send the HTML to the client for faster page load times.
For more information on how to use Stencil output targets, please refer to the [Stencil documentation](https://stenciljs.com/docs/output-targets).
## License
This package is licensed under the MIT license.