-
Notifications
You must be signed in to change notification settings - Fork 13
/
stencil.config.docs.ts
43 lines (42 loc) · 1.17 KB
/
stencil.config.docs.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
import { Config } from '@stencil/core';
import { sass } from '@stencil/sass';
import { kompendium } from 'kompendium';
import guides from './guides';
import { nodeResolve } from '@rollup/plugin-node-resolve';
export const config: Config = {
hashFileNames: false,
namespace: 'lime-elements',
outputTargets: [
{
type: 'docs-custom',
strict: true,
generator: kompendium({
typeRoot: './src/interface.ts',
guides: guides,
}),
},
{
type: 'www',
serviceWorker: null,
dir: 'www',
baseUrl: '/',
copy: [
{ src: 'style/color-palette-extended.css' },
{
src: '../node_modules/kompendium/dist/',
dest: 'assets/kompendium/',
},
{
src: 'favicon.svg',
dest: 'favicon.svg',
},
],
},
],
plugins: [sass()],
rollupPlugins: {
before: [nodeResolve()],
},
tsconfig: './tsconfig.docs.json',
globalStyle: 'src/global/core-styles.scss',
};