forked from SNCFdevelopers/wcs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stencil.config.ts
45 lines (43 loc) · 1.16 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 path from 'path';
import glob from 'glob';
export const config: Config = {
namespace: 'wcs',
excludeSrc: [
'.md$',
'.html$'
],
nodeResolve: {
browser: true
},
testing: {
rootDir: './src',
testPathIgnorePatterns: ['/node_modules/', '/dist/', '/example/'],
browserArgs: ['--no-sandbox', '--disable-setuid-sandbox'],
},
globalStyle: 'src/style/wcs.global.scss',
plugins: [
sass({
// Allows to write @import '@material/*' from scss
// Typings are wrong so we have to add as any
// TODO: make it so we don't have to type full path for /style folder too.
includePaths: glob.sync(
path.join(__dirname, '**/node_modules/@material')
).map((dir) => path.dirname(dir))
} as any)
],
outputTargets: [
{
type: 'dist',
esmLoaderPath: '../loader'
},
{
type: 'docs-readme'
},
{
type: 'www',
serviceWorker: null
}
]
};