-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstencil.config.ts
55 lines (53 loc) · 1.35 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
import { Config } from '@stencil/core';
import { sass } from '@stencil/sass';
import nodePolyfills from 'rollup-plugin-node-polyfills';
import tailwind, {
PluginOpts,
setPluginConfigurationDefaults,
tailwindHMR,
} from 'stencil-tailwind-plugin';
import tailwindConf from './tailwind.config.ts';
setPluginConfigurationDefaults({
...PluginOpts.DEFAULT,
stripComments: true,
minify: true,
tailwindCssPath: './src/css/theme.css',
tailwindConf,
});
export const config: Config = {
namespace: 'dyne-components',
outputTargets: [
{
type: 'dist',
esmLoaderPath: '../loader',
},
{
type: 'dist-custom-elements',
customElementsExportBehavior: 'auto-define-custom-elements',
externalRuntime: false,
},
{
type: 'docs-readme',
},
{
type: 'www',
serviceWorker: null, // disable service workers
copy: [{ src: '**/*.html' }, { src: '**/*.css' }],
},
{
type: 'docs-vscode',
file: 'vscode-data.json',
},
],
testing: {
browserHeadless: 'new',
// Stencil Test Runner will no longer execute any 'e2e.ts` files
testRegex: '(/__tests__/.*|(\\.|/)(test|spec)|[//](e2e))\\.[jt]sx?$',
},
plugins: [sass(), tailwind(), tailwindHMR()],
rollupPlugins: {
after: [nodePolyfills()],
},
globalStyle: 'src/css/theme.css',
// globalScript: 'src/app.ts',
};