-
Notifications
You must be signed in to change notification settings - Fork 1
/
stencil.config.ts
65 lines (64 loc) · 1.48 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
61
62
63
64
65
import { Config } from '@stencil/core';
import { sass } from '@stencil/sass';
import { inlineSvg } from 'stencil-inline-svg';
export const config: Config = {
hydratedFlag: {
selector: 'attribute',
},
namespace: 'geotrek-rando-widget',
buildEs5: 'prod',
extras: {
scriptDataOpts: true,
appendChildSlotFix: false,
cloneNodeFix: false,
slotChildNodesFix: true,
},
outputTargets: [
{
type: 'dist',
esmLoaderPath: '../loader',
copy: [
{
src: 'assets',
dest: 'assets',
warn: true,
},
],
},
{
type: 'docs-readme',
},
{
type: 'www',
serviceWorker: {
swSrc: 'src/sw.js',
globPatterns: ['**/*.{js,css,json,html,ico,png,ttf}', 'assets/contract.svg', 'assets/default-image.svg', 'assets/layers.svg', 'assets/parking.svg'],
},
copy: [
{
src: 'assets/contract.svg',
dest: 'build/assets/contract.svg',
warn: true,
},
{
src: 'assets/default-image.svg',
dest: 'build/assets/default-image.svg',
warn: true,
},
{
src: 'assets/layers.svg',
dest: 'build/assets/layers.svg',
warn: true,
},
{
src: 'assets/parking.svg',
dest: 'build/assets/parking.svg',
warn: true,
},
],
},
],
plugins: [sass(), inlineSvg()],
globalStyle: 'src/global/global.scss',
sourceMap: true,
};