-
Notifications
You must be signed in to change notification settings - Fork 0
/
stencil.config.ts
54 lines (53 loc) · 1.03 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
import { Config } from '@stencil/core';
import nodePolyfills from 'rollup-plugin-node-polyfills';
export const config: Config = {
namespace: 'mgexplorer',
globalStyle: './src/mgexplorer/index.css',
srcDir: './src/mgexplorer',
commonjs: {
namedExports: {
'./src/lib/mge-mappers': ['mge-mappers'],
'./src/scripts/query-helper': ['query-helper']
}
},
enableCache: false,
outputTargets: [
{
type: 'dist',
esmLoaderPath: '../loader',
copy: [
{
src: 'assets',
dest: 'assets',
warn: true,
}
]
},
{
type: 'dist-custom-elements-bundle',
},
{
type: 'docs-readme',
},
{
type: 'www',
serviceWorker: null, // disable service workers
baseUrl: 'http://localhost:8040',
copy: [
{
src: 'assets',
dest: 'build/assets',
warn: true,
}
]
}
],
rollupPlugins: {
after: [
nodePolyfills(),
]
},
extras: {
cloneNodeFix: true
}
};