forked from GoogleChrome/developer.chrome.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.percy.js
39 lines (38 loc) · 922 Bytes
/
.percy.js
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
const SNAPSHOTS = [
'/en/index.html',
'/en/docs/handbook/content-types/blog-landing/index.html',
'/en/docs/handbook/content-types/docs-landing/index.html',
'/en/docs/handbook/content-types/doc-post/index.html',
'/en/docs/handbook/content-types/landing/index.html',
'/en/docs/handbook/content-types/meet-the-team/index.html',
];
module.exports = {
version: 2,
snapshot: {
widths: [
375,
865,
1280,
1600
],
percyCSS: '\n' +
' iframe, .cookie-banner {\n' +
' display: none !important;\n' +
' }\n' +
' ',
enableJavaScript: true
},
discovery: {
disableCache: true,
networkIdleTimeout: 250,
concurrency: 15,
},
static: {
baseUrl: '/',
include: SNAPSHOTS,
exclude: [
// Prevent percy to snapshot all index.html files in ./dist dir
({ name }) => !SNAPSHOTS.includes(name)
],
}
}