Skip to content

Commit

Permalink
fix styling issues in storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisirhc committed Jun 28, 2021
1 parent 57ddf2a commit 216ca19
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
const path = require('path')
const toPath = _path => path.join(process.cwd(), _path)

module.exports = {
"stories": [
"../src/**/*.stories.mdx",
Expand All @@ -7,5 +10,18 @@ module.exports = {
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/preset-create-react-app"
]
],
// From https://github.com/storybookjs/storybook/issues/7540
webpackFinal: async config => {
return {
...config,
resolve: {
...config.resolve,
alias: {
...config.resolve.alias,
'@emotion/styled': toPath('node_modules/@emotion/styled'),
},
},
}
},
}

0 comments on commit 216ca19

Please sign in to comment.