Skip to content

Instantly share code, notes, and snippets.

@TheMagoo73
Created February 12, 2021 13:44
Show Gist options
  • Save TheMagoo73/1f9dbdaf7a78b12b21d3a32b02f809ef to your computer and use it in GitHub Desktop.
Save TheMagoo73/1f9dbdaf7a78b12b21d3a32b02f809ef to your computer and use it in GitHub Desktop.
const path = require('path')
module.exports = {
"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/preset-create-react-app"
],
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
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment