-
Notifications
You must be signed in to change notification settings - Fork 0
/
stencil.config.ts
40 lines (38 loc) · 1.02 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
import { Config } from '@stencil/core';
import { postcss } from '@stencil-community/postcss';
import { sass } from '@stencil/sass';
import autoprefixer from 'autoprefixer';
export const config: Config = {
namespace: 'xmf',
plugins: [sass(), postcss({ plugins: [autoprefixer()] })],
buildEs5: 'prod',
outputTargets: [
{ type: 'dist', esmLoaderPath: '../loader' },
{
type: 'docs-readme',
},
{
type: 'www',
serviceWorker: null,
copy: [{ src: 'static' }],
},
],
devServer: {
// With HMR the `load` lifecycle event is triggered but not the `unload`
// event. This will lead to non removing event listeners but only adding
// more and more new listeners.
//
// See https://github.com/ionic-team/stencil/issues/1316
//
reloadStrategy: 'pageReload',
openBrowser: false,
},
testing: (() => {
switch (process.env.DEBUG) {
case '1':
return { browserHeadless: false, browserSlowMo: 2000 };
default:
return {};
}
})(),
};