-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstencil.config.ts
45 lines (44 loc) · 1.01 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
import { Config } from '@stencil/core';
import { sass } from '@stencil/sass';
import nodePolyfills from 'rollup-plugin-node-polyfills';
import tailwind, { tailwindGlobal, tailwindHMR } from 'stencil-tailwind-plugin';
import cfg from './tailwind.config';
export const config: Config = {
// globalStyle: 'src/theme/main.scss',
namespace: 'tailwindcss-stenciljs-example',
outputTargets: [
{
type: 'dist',
esmLoaderPath: '../loader',
},
{
type: 'dist-custom-elements',
},
{
type: 'docs-readme',
},
{
type: 'www',
serviceWorker: null, // disable service workers
},
],
rollupPlugins: {
after: [nodePolyfills()],
},
devServer: {
openBrowser: false,
reloadStrategy: 'pageReload',
},
plugins: [
sass(),
tailwindGlobal({
// tailwindCssPath: './src/theme/main.scss',
tailwindConf: cfg,
}),
tailwind({
// tailwindCssPath: './src/theme/main.scss',
tailwindConf: cfg,
}),
tailwindHMR(),
],
};