2022-04-18 03:50:39 +02:00
|
|
|
module.exports = {
|
2022-04-18 07:32:57 +02:00
|
|
|
core: {
|
|
|
|
builder: 'webpack5',
|
|
|
|
},
|
2022-05-13 00:41:54 +02:00
|
|
|
stories: [
|
|
|
|
'../stories/Introduction.stories.mdx',
|
|
|
|
'../stories/**/*.stories.mdx',
|
|
|
|
'../stories/**/*.stories.@(js|jsx|ts|tsx)',
|
|
|
|
],
|
2022-04-18 03:50:39 +02:00
|
|
|
addons: [
|
|
|
|
'@storybook/addon-links',
|
|
|
|
'@storybook/addon-essentials',
|
|
|
|
'@storybook/addon-interactions',
|
|
|
|
'@storybook/preset-scss',
|
|
|
|
'@storybook/addon-postcss',
|
2022-04-23 08:04:27 +02:00
|
|
|
'@storybook/addon-a11y',
|
|
|
|
'@storybook/addon-viewport',
|
|
|
|
'storybook-dark-mode',
|
|
|
|
'addon-screen-reader',
|
2022-04-18 03:50:39 +02:00
|
|
|
],
|
2022-04-18 07:32:57 +02:00
|
|
|
webpackFinal: async (config, { configType }) => {
|
|
|
|
config.module.rules.push({
|
|
|
|
test: /\.less$/,
|
|
|
|
use: [
|
|
|
|
require.resolve('style-loader'),
|
|
|
|
require.resolve('css-loader'),
|
|
|
|
{
|
|
|
|
loader: require.resolve('less-loader'),
|
|
|
|
options: {
|
|
|
|
lessOptions: { javascriptEnabled: true },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
});
|
|
|
|
return config;
|
|
|
|
},
|
2022-04-18 03:50:39 +02:00
|
|
|
framework: '@storybook/react',
|
|
|
|
};
|