forked from happo/happo-plugin-storybook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.happo.js
36 lines (33 loc) · 921 Bytes
/
.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
const path = require('path');
const { RemoteBrowserTarget } = require('happo.io');
const happoPluginStorybook = require('.');
module.exports = {
targets: {
chrome: new RemoteBrowserTarget('chrome', {
viewport: '800x600',
chunks: 4,
}),
firefox: new RemoteBrowserTarget('firefox', {
viewport: '800x600',
chunks: 2,
}),
edge: new RemoteBrowserTarget('edge', { viewport: '800x600', chunks: 1 }),
safari: new RemoteBrowserTarget('safari', {
viewport: '800x600',
chunks: 2,
}),
iosSafari: new RemoteBrowserTarget('ios-safari', {
viewport: '375x600',
chunks: 2,
}),
},
plugins: [
happoPluginStorybook({
configDir: '.storybook',
outputDir: '.happo-out',
staticDir: 'public',
usePrebuiltPackage: !!process.env.HAPPO_USE_PREBUILT_PACKAGE,
}),
],
stylesheets: [path.resolve(__dirname, 'test.css')],
};