-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstencil.config.ts
100 lines (98 loc) · 2.53 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import { Config } from '@stencil/core';
import { sass } from '@stencil/sass';
import dotenvPlugin from 'rollup-plugin-dotenv';
export const config: Config = {
devServer: {
openBrowser: false,
// logRequests: true,
},
globalStyle: './src/global/style.scss',
namespace: 'site',
outputTargets: [
{
type: 'www',
prerenderConfig: './prerender.config.ts',
baseUrl: 'https://install.doctor/',
serviceWorker: {
swSrc: 'src/sw.js',
globPatterns: [
'*.{png,xml,ico,json,svg,html}',
'*/**/*.{json,js,css,json,html,woff2}',
'**/assets/img/*.{png,webp}',
'**/assets/img/{blog,community,enterprise,heading,landing,solutions}/**.webp',
'**/docs/img/*.{svg,webp}',
'**/docs/img/**/*.{svg,webp}',
'**/build/svg/{logo-github,close,logo-gitlab,logo-slack,logo-discord,logo-facebook,logo-twitter,logo-linkedin,logo-youtube,send,information-circle-outline,chatbubbles-sharp,link,mail,navigate,checkmark-circle}.svg',
],
},
copy: [
{
src: '../docs/build',
dest: 'docs',
},
{
src: './android-chrome-192x192.png',
dest: 'android-chrome-192x192.png',
},
{
src: './android-chrome-512x512.png',
dest: 'android-chrome-512x512.png',
},
{
src: './apple-touch-icon.png',
dest: 'apple-touch-icon.png',
},
{
src: './browserconfig.xml',
dest: 'browserconfig.xml',
},
{
src: './favicon-16x16.png',
dest: 'favicon-16x16.png',
},
{
src: './favicon-32x32.png',
dest: 'favicon-32x32.png',
},
{
src: './favicon.ico',
dest: 'favicon.ico',
},
{
src: './mstile-150x150.png',
dest: 'mstile-150x150.png',
},
{
src: './safari-pinned-tab.svg',
dest: 'safari-pinned-tab.svg',
},
{
src: './sitemap_index.xml',
dest: 'sitemap_index.xml',
},
{
src: './robots.txt',
dest: 'robots.txt',
},
{
src: './ads.txt',
dest: 'ads.txt',
},
{
src: './humans.txt',
dest: 'humans.txt',
},
{
src: './site-noscript.css',
dest: 'site-noscript.css',
},
],
},
],
plugins: [
sass({
includePaths: ['ds'],
}),
dotenvPlugin(),
],
};