Storybook Helpers (#35158)
This commit is contained in:
parent
0a7418e6d8
commit
c52848b444
11 changed files with 288 additions and 25 deletions
|
|
@ -11,7 +11,21 @@ const config: StorybookConfig = {
|
|||
name: '@storybook/react-vite',
|
||||
options: {},
|
||||
},
|
||||
staticDirs: ['./static'],
|
||||
staticDirs: [
|
||||
'./static',
|
||||
// We need to manually specify the assets because of the symlink in public/sw.js
|
||||
...[
|
||||
'avatars',
|
||||
'emoji',
|
||||
'headers',
|
||||
'sounds',
|
||||
'badge.png',
|
||||
'loading.gif',
|
||||
'loading.png',
|
||||
'oops.gif',
|
||||
'oops.png',
|
||||
].map((path) => ({ from: `../public/${path}`, to: `/${path}` })),
|
||||
],
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue