Skip to content

Instantly share code, notes, and snippets.

@Mobiletainment
Created May 31, 2020 07:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mobiletainment/8f1245c40a936548fb2a46b144fabe65 to your computer and use it in GitHub Desktop.
Save Mobiletainment/8f1245c40a936548fb2a46b144fabe65 to your computer and use it in GitHub Desktop.
Stencil component library with React bindings in a Nx monorepo
import { Config } from '@stencil/core';
import { reactOutputTarget } from '@stencil/react-output-target';
import { sass } from '@stencil/sass';
export const config: Config = {
namespace: 'ui-components',
taskQueue: 'async',
outputTargets: [
reactOutputTarget({
componentCorePackage: 'ui-components',
proxiesFile: '../../generated/ui-components-react/src/components.ts'
}),
{
type: 'dist',
esmLoaderPath: './loader'
},
{
type: 'docs-readme',
},
{
type: 'www',
serviceWorker: null, // disable service workers
},
],
plugins: [sass()],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment