forked from GoogleChrome/developer.chrome.com
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.percy.js
40 lines (39 loc) · 962 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
40
const SNAPSHOTS = [
'/index.html', // Home
'/docs/index.html', // Docs
'/docs/native-client/index.html', // Docs landing page
'/docs/extensions/mv3/index.html', // Docs page
'/docs/extensions/reference/action/index.html', // API reference page
'/docs/handbook/test-post/index.html', // Test blog post
'/docs/handbook/components/index.html', // Handbook components
];
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)
]
}
}