You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
592 B
25 lines
592 B
2 years ago
|
const path = require('path');
|
||
|
|
||
|
module.exports = {
|
||
|
stories: ['../stories/**/*.stories.mdx', '../stories/**/*.stories.tsx'],
|
||
|
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
|
||
|
framework: '@storybook/react',
|
||
|
core: {
|
||
|
builder: '@storybook/builder-vite',
|
||
|
},
|
||
|
async viteFinal(config, { configType }) {
|
||
|
// customize the Vite config here
|
||
|
return {
|
||
|
...config,
|
||
|
resolve: {
|
||
|
alias: [
|
||
|
{
|
||
|
find: '@tih/ui',
|
||
|
replacement: path.resolve(__dirname, '../../../packages/ui/'),
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
};
|
||
|
},
|
||
|
};
|