This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
website/.storybook/main.js
2021-10-24 05:48:06 +02:00

28 lines
636 B
JavaScript

const path = require('path')
module.exports = {
stories: ['../components/**/*.stories.@(ts|tsx|js|jsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-postcss',
'storybook-tailwind-dark-mode'
],
webpackFinal: async (config) => {
config.module.rules.push({
test: /\,css&/,
use: [
{
loader: 'postcss-loader',
options: {
ident: 'postcss',
plugins: [require('tailwindcss'), require('autoprefixer')]
}
}
],
include: path.resolve(__dirname, '../')
})
return config
}
}