-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.happo.js
51 lines (48 loc) · 1.21 KB
/
.happo.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
41
42
43
44
45
46
47
48
49
50
51
const path = require('path');
const { RemoteBrowserTarget } = require('happo.io');
const happoPluginStorybook = require('.');
module.exports = {
project: process.env.HAPPO_PROJECT,
targets: {
chrome: new RemoteBrowserTarget('chrome', {
viewport: '800x600',
chunks: 4,
allowPointerEvents: true,
}),
firefox: new RemoteBrowserTarget('firefox', {
viewport: '800x600',
chunks: 2,
allowPointerEvents: true,
}),
edge: new RemoteBrowserTarget('edge', {
viewport: '800x600',
chunks: 1,
allowPointerEvents: true,
}),
safari: new RemoteBrowserTarget('safari', {
viewport: '800x600',
chunks: 2,
allowPointerEvents: true,
}),
iosSafari: new RemoteBrowserTarget('ios-safari', {
viewport: '375x600',
chunks: 2,
}),
},
plugins: [
happoPluginStorybook({
configDir: '.storybook',
outputDir: '.happo-out',
usePrebuiltPackage: !!process.env.HAPPO_USE_PREBUILT_PACKAGE,
skip: () => {
return [
{
component: 'Stories',
variant: 'Button With Text [white]',
},
];
},
}),
],
stylesheets: [path.resolve(__dirname, 'test.css')],
};