This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 68
/
stencil.config.ts
74 lines (73 loc) · 2.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
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
import { Config } from "@stencil/core"
import { sass } from "@stencil/sass"
export const config: Config = {
// See https://github.com/ionic-team/stencil/blob/master/src/declarations/config.ts for config
namespace: "duet",
enableCache: true,
hashFileNames: false,
autoprefixCss: false,
minifyCss: true,
buildEs5: true,
taskQueue: "immediate",
preamble: "Built with Duet Design System",
hashedFileNameLength: 8,
commonjs: { include: /node_modules|(..\/.+)/ } as any,
bundles: [{ components: ["duet-date-picker"] }],
devServer: {
openBrowser: true,
port: 3333,
reloadStrategy: "pageReload",
},
extras: {
// We need the following for IE11 and old Edge:
cssVarsShim: true,
dynamicImportShim: true,
// We don’t use shadow DOM so this is not needed:
shadowDomShim: false,
// Setting the below option to “true” will actually break Safari 10 support:
safari10: false,
// This is to tackle an Angular specific performance issue:
initializeNextTick: true,
// Don’t need any of these so setting them to “false”:
scriptDataOpts: false,
appendChildSlotFix: false,
cloneNodeFix: false,
slotChildNodesFix: false,
},
outputTargets: [
{
type: "dist-hydrate-script",
dir: "hydrate",
empty: false,
},
{
type: "dist-custom-elements-bundle",
dir: "custom-element",
empty: true,
},
{
type: "dist",
dir: "dist",
empty: true,
copy: [{ src: "themes", warn: true }],
},
{
type: "docs-readme",
},
{
type: "www",
dir: "www",
serviceWorker: null,
empty: true,
baseUrl: "https://duetds.github.io/",
prerenderConfig: "./prerender.config.ts",
copy: [{ src: "themes", dest: "themes", warn: true }],
},
],
plugins: [sass()],
testing: {
browserHeadless: process.env.TEST_HEADLESS !== "false",
setupFilesAfterEnv: ["<rootDir>/jest/jest-setup.js"],
testPathIgnorePatterns: ["<rootDir>/hydrate/", "<rootDir>/dist/"],
},
}