-
Notifications
You must be signed in to change notification settings - Fork 18
/
stencil.config.ts
60 lines (59 loc) · 1.41 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import { Config } from '@stencil/core';
import { sass } from '@stencil/sass';
import { reactOutputTarget } from '@stencil/react-output-target';
export const config: Config = {
namespace: 'blip-ds',
plugins: [
sass({
includePaths: ['src/globals'],
injectGlobalPaths: ['src/globals/app.scss', 'node_modules/blip-tokens/build/scss/variables.scss'],
}),
],
outputTargets: [
{
type: 'dist',
esmLoaderPath: '../loader',
copy: [
{ src: 'globals', dest: 'styles' },
{ src: '../blip-ds-react/dist', dest: '../blip-ds-react' },
],
},
{
type: 'docs-readme',
},
{
type: 'www',
serviceWorker: null, // disable service workers
},
{
type: 'www',
serviceWorker: null, // disable service workers
dir: 'cypress',
empty: false,
copy: [{ src: '../dist', dest: 'dist', warn: false }],
},
reactOutputTarget({
componentCorePackage: '../../loader',
proxiesFile: './blip-ds-react/src/components.ts',
}),
],
buildEs5: 'prod',
extras: {
appendChildSlotFix: true,
cssVarsShim: true,
dynamicImportShim: true,
shadowDomShim: true,
safari10: true,
scriptDataOpts: true,
cloneNodeFix: false,
slotChildNodesFix: true,
experimentalImportInjection: true,
},
testing: {
timers: 'fake',
},
devServer: {
reloadStrategy: 'pageReload',
port: 4444,
},
};