-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstencil.config.ts
65 lines (62 loc) · 1.39 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 tailwind, { setPluginConfigurationDefaults, tailwindGlobal, tailwindHMR } from 'stencil-tailwind-plugin';
import tailwindConf from './tailwind.config';
const opts = {
debug: false,
stripComments: true,
tailwindCssPath: './src/global/global.css',
tailwindConf,
};
setPluginConfigurationDefaults(opts);
export const config: Config = {
namespace: 'didroom-components',
globalStyle: 'src/global/global.css',
globalScript: 'src/global/app.ts',
outputTargets: [
{
type: 'dist',
esmLoaderPath: '../loader',
copy: [
{
src: '**/*.woff2',
dest: 'assets',
warn: true,
},
],
},
{
type: 'dist-custom-elements',
copy: [
{
src: '**/*.{jpg,png}',
dest: 'dist/didroom-components/assets',
warn: true,
},
],
generateTypeDeclarations: true,
},
{
type: 'docs-readme',
},
{
type: 'docs-vscode',
file: 'dist/vscode-data.json',
},
{
type: 'www',
serviceWorker: null, // disable service workers
copy: [
{
src: '**/*.woff2',
dest: 'assets',
warn: true,
},
],
},
],
testing: {
browserHeadless: 'new',
},
plugins: [sass(), tailwindGlobal(), tailwind(), tailwindHMR()],
};