1.0.0 • Published 2 years ago

@geovistory/happy-dom-output-target v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@stencil/happy-dom-output-target

Stencil can generate a HappyDOM rendering function for your web components. This allows your Stencil components to be server side rendered in a node application.

Installation

npm install @geovistory/happy-dom-output-target

Usage

In your stencil.config.ts add the following configuration to the outputTargets section:

import { Config } from '@stencil/core';
import { happyDomOutputTarget } from '@stencil/geovistory-dom-output-target';

export const config: Config = {
  namespace: 'demo',
  outputTargets: [
    happyDomOutputTarget({
      loaderPath: 'my-webcomponents/loader'
    }),
    {
      type: 'dist',
      esmLoaderPath: '../loader',
    },
  ],
};

Config Options

PropertyDescription
loaderPathThe NPM package name of your Stencil component library loader path. This package is used as a dependency for your HappyDOM wrappers.
outputPathThe file path to put the resulting file to.
baseURIThe the base URI set on HappyDOM document.
1.0.1-3

2 years ago

1.0.1-2

2 years ago

1.0.1-1

2 years ago

1.0.1-0

2 years ago

1.0.0

2 years ago