Skip to content

Commit

Permalink
fix storybook + postcss
Browse files Browse the repository at this point in the history
  • Loading branch information
chaance committed Apr 20, 2022
1 parent 0bc4330 commit 3f50109
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,18 @@ const alias = packages.reduce((memo, pkg) => {

module.exports = {
stories: ["../packages/**/*/*.story.@(js|ts|tsx)"],
features: {
postcss: false,
},
addons: [
"@storybook/addon-actions/register",
"@storybook/addon-docs/register",
"@storybook/addon-links/register",
// TODO: Unsure why this isn't working, but we can rely on the standard CSS
// loaders until I figure it out.
// [
// "@storybook/addon-postcss",
// {
// name: "@storybook/addon-postcss",
// options: {
// postcssLoaderOptions: {
// implementation: require("postcss"),
// },
// },
// },
// ],
{
name: "@storybook/addon-postcss",
options: {
postcssLoaderOptions: {
implementation: require("postcss"),
},
},
},
],
webpackFinal: async (config) => {
config.resolve = {
Expand Down

0 comments on commit 3f50109

Please sign in to comment.