/
stencil.config.ts
61 lines (59 loc) · 1.28 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
import { Config } from '../../internal';
import builtins from 'rollup-plugin-node-builtins';
import linaria from 'linaria/rollup';
import css from 'rollup-plugin-css-only';
import { reactOutputTarget } from '@stencil/react-output-target';
import path from 'path';
export const config: Config = {
namespace: 'EndToEnd',
globalScript: './src/global.ts',
globalStyle: './src/global.css',
plugins: [builtins()],
rollupPlugins: {
after: [
linaria(),
css({
output: path.join(__dirname, 'www', 'linaria.css'),
}),
],
},
testing: {
moduleNameMapper: {
'lodash-es': 'lodash',
},
},
outputTargets: [
{
type: 'www',
empty: false,
serviceWorker: null,
},
{
type: 'dist',
},
{
type: 'dist-custom-elements-bundle',
},
{
type: 'dist-hydrate-script',
},
{
type: 'docs-json',
file: 'docs.json',
},
reactOutputTarget({
componentCorePackage: '@stencil/e2e-react-output-target',
proxiesFile: './dist-react/components.ts',
}),
],
hydratedFlag: {
name: 'custom-hydrate-flag',
selector: 'attribute',
property: 'opacity',
initialValue: '0',
hydratedValue: '1',
},
enableCache: false,
hashFileNames: false,
buildEs5: 'prod',
};