owncast/web/.storybook/main.js

31 lines
763 B
JavaScript
Raw Normal View History

2022-04-18 03:50:39 +02:00
module.exports = {
core: {
builder: 'webpack5',
},
2022-04-18 03:50:39 +02:00
stories: ['../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',
],
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',
};