-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstencil.config.ts
57 lines (56 loc) · 1.18 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
import { Config } from '@stencil/core';
import { sass } from '@stencil/sass';
export const config: Config = {
namespace: 'anywhere-webcomponents',
taskQueue: 'async',
buildEs5: true,
extras: {
cssVarsShim: true,
dynamicImportShim: true,
shadowDomShim: true,
safari10: true,
scriptDataOpts: true,
appendChildSlotFix: false,
cloneNodeFix: false,
slotChildNodesFix: true,
},
outputTargets: [
{
type: 'dist',
esmLoaderPath: '../loader',
},
{
type: 'dist-custom-elements-bundle',
},
{
type: 'docs-readme',
},
{
type: 'www',
serviceWorker: null, // disable service workers
copy: [
{
src: 'styles.css',
},
],
},
],
globalStyle: 'src/scss/global.scss',
plugins: [
sass({
injectGlobalPaths: ['src/scss/injected.scss'],
}),
],
testing: {
collectCoverage: true,
/**
* Gitlab CI doesn't allow sandbox, therefor this parameters must be passed to your Headless Chrome
* before it can run your tests
*/
browserArgs: [
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-extensions',
],
},
};