Files
slot-game-kit/.storybook/main.js
Andrey Sharshov c02d04073f initial
2025-11-16 18:48:06 +01:00

38 lines
1.1 KiB
JavaScript

const path = require('path');
module.exports = {
stories: ['../src/stories/**/*.stories.@(ts|tsx|js|jsx|mdx)'],
staticDirs: ['../src/stories/assets'],
output: '../docs/',
logLevel: 'debug',
addons: [
'@storybook/addon-docs',
'@storybook/addon-actions',
'@storybook/addon-backgrounds',
'@storybook/addon-controls',
'@storybook/addon-viewport',
'@storybook/addon-links',
'@storybook/addon-highlight',
'@storybook/addon-storysource',
'@storybook/addon-webpack5-compiler-babel',
'@chromatic-com/storybook'
],
core: {
channelOptions: { allowFunction: false, maxDepth: 10 },
disableTelemetry: true,
},
features: {
buildStoriesJson: true,
breakingChangesV7: true,
babelModeV7: true,
},
framework: '@pixi/storybook-webpack5',
webpackFinal: async (config) => {
config.resolve.alias = {
...config.resolve.alias,
src: path.resolve(__dirname, '../src'),
};
return config;
},
};