Skip to content

Commit

Permalink
Fix Storybook config
Browse files Browse the repository at this point in the history
  • Loading branch information
dottorblaster committed Apr 5, 2023
1 parent 12b4db3 commit b2384d5
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions assets/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
const path = require('path');

module.exports = {
stories: ['../**/*.stories.mdx', '../**/*.stories.@(js|jsx|ts|tsx)'],
stories: ['../js/**/*.stories.mdx', '../js/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-actions',
'@storybook/addon-interactions',
],
framework: '@storybook/react',
framework: {
name: '@storybook/react-webpack5',
options: {},
},
webpackFinal: async (config) => {
config.resolve.alias = {
...config.resolve.alias,
'@components': path.resolve(__dirname, '../js/components'),
'@lib': path.resolve(__dirname, '../js/lib'),
'@hooks': path.resolve(__dirname, '../js/hooks'),
'@state': path.resolve(__dirname, '../js/state'),
'@static': path.resolve(__dirname, '../static'),
};
return config;
},
docs: {
autodocs: true,
},
};

0 comments on commit b2384d5

Please sign in to comment.