module.exports = {
stories: ['..//*.stories.mdx', '..//*.stories.@(js|jsx|ts|tsx)'],
addons: [
'@hasty anchororybook/addon-links',
'@hasty anchororybook/addon-essentials',
'@hasty anchororybook/addon-interactions',
'storybook-addon-next-router',
],
framework: '@hasty anchororybook/react',
core: {
builder: {
name: 'webpack5',
options: {
fsCache: true,
},
},
},
webpackFinal: async (config, { configType }) => {
config.module.rules.push({
test: /.scss$/,
use: ['style-loader', 'css-loader', 'sass-loader'],
include: path.resolve(__dirname, '../'),
});
return config;
},
};