-
Notifications
You must be signed in to change notification settings - Fork 0
/
stencil.config.ts
46 lines (45 loc) · 907 Bytes
/
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
46
import { env } from '@alepop/stencil-env';
import { Config } from '@stencil/core';
import { sass } from '@stencil/sass';
export const config: Config = {
globalStyle: 'src/global/app.css',
globalScript: 'src/global/app.ts',
taskQueue: 'async',
outputTargets: [
{
type: 'www',
baseUrl: 'https://adamlacombe.com/',
prerenderConfig: './prerender.config.ts',
serviceWorker: {
unregister: true
},
copy: [
{
src: 'feed.xml',
dest: 'feed/feed.xml'
},
{
src: 'ads.txt',
dest: 'ads.txt'
}
]
},
{
type: 'dist-hydrate-script',
dir: 'dist/prerender',
},
],
plugins: [
sass({
injectGlobalPaths: [
'src/global/global.scss',
],
}),
env({})
],
enableCache: false,
devServer: {
openBrowser: false,
port: 3337
}
};