mirror of
https://github.com/owncast/owncast.git
synced 2024-11-27 08:29:57 +03:00
38 lines
933 B
JavaScript
38 lines
933 B
JavaScript
module.exports = {
|
|
core: {
|
|
builder: 'webpack5',
|
|
},
|
|
stories: [
|
|
'../stories/Introduction.stories.mdx',
|
|
'../stories/**/*.stories.mdx',
|
|
'../stories/**/*.stories.@(js|jsx|ts|tsx)',
|
|
],
|
|
addons: [
|
|
'@storybook/addon-links',
|
|
'@storybook/addon-essentials',
|
|
'@storybook/addon-interactions',
|
|
'@storybook/preset-scss',
|
|
'@storybook/addon-postcss',
|
|
'@storybook/addon-a11y',
|
|
'storybook-addon-designs',
|
|
'storybook-dark-mode',
|
|
'addon-screen-reader',
|
|
],
|
|
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;
|
|
},
|
|
framework: '@storybook/react',
|
|
};
|