-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathstencil.config.ts
42 lines (40 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
import { Config } from '@stencil/core';
import { kompendium } from './src/kompendium';
import { sass } from '@stencil/sass';
import nodePolyfill from 'rollup-plugin-node-polyfills';
import guides from './guides';
export const config: Config = {
namespace: 'kompendium',
plugins: [sass()],
rollupPlugins: {
after: [nodePolyfill()],
},
nodeResolve: {
preferBuiltins: true,
},
globalStyle: 'src/global/kompendium.scss',
outputTargets: [
{
type: 'dist',
esmLoaderPath: '../loader',
},
{
type: 'docs-custom',
strict: true,
generator: kompendium({
guides: guides,
logo: '/collection/assets/logotype.svg',
}),
},
{
type: 'www',
serviceWorker: null,
copy: [
{
src: 'assets',
dest: './collection/assets',
},
],
},
],
};