-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstencil.config.ts
42 lines (41 loc) · 1.19 KB
/
stencil.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { Config } from '@stencil/core';
import { reactOutputTarget } from '@stencil/react-output-target';
export const config: Config = {
namespace: 'stencil-library',
outputTargets: [
{
type: 'dist',
copy: [
{ src: '../njwds/img', dest: 'img' },
{ src: '../njwds/fonts', dest: 'fonts' },
{ src: '../njwds/js', dest: 'js' },
{ src: '../njwds/css', dest: 'css' },
],
esmLoaderPath: '../loader',
},
{
type: 'dist-custom-elements',
customElementsExportBehavior: 'auto-define-custom-elements',
externalRuntime: false,
},
reactOutputTarget({
componentCorePackage: '../../../../stencil-library/dist',
proxiesFile: '../react-library/lib/components/stencil-generated/index.ts',
}),
{
type: 'www',
serviceWorker: null, // disable service workers
copy: [
{ src: '../njwds/img', dest: 'build/img' },
{ src: '../njwds/fonts', dest: 'build/fonts' },
{ src: '../njwds/js', dest: 'build/js' },
{ src: '../njwds/css', dest: 'build/css' },
{ src: 'components' },
],
},
],
testing: {
browserHeadless: 'new',
},
enableCache: false,
};