Skip to content

Commit

Permalink
*chore bump css and scss deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Sodik committed Oct 9, 2024
1 parent 6475dd3 commit c54370a
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions packages/ui/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { dirname, join } from 'path'
const path = require('path')

module.exports = {
stories: ['../**/*.@(mdx|stories.@(tsx))'],
stories: ['../**/*.stories.@(tsx|mdx)'],
staticDirs: ['../assets', '../styles'],

addons: [
{
name: '@storybook/preset-scss',
Expand All @@ -16,12 +14,9 @@ module.exports = {
},
},
},
getAbsolutePath('storybook-addon-designs'),
getAbsolutePath('@storybook/addon-docs'),
getAbsolutePath('@storybook/addon-mdx-gfm'),
getAbsolutePath('@storybook/addon-webpack5-compiler-babel'),
'storybook-addon-designs',
'@storybook/addon-docs',
],

webpackFinal: async (config) => {
config.module.rules = [
...config.module.rules,
Expand Down Expand Up @@ -53,7 +48,6 @@ module.exports = {

return config
},

typescript: {
check: false,
checkOptions: {},
Expand All @@ -63,17 +57,7 @@ module.exports = {
propFilter: (prop) => (prop.parent ? !/node_modules/.test(prop.parent.fileName) : true),
},
},

framework: {
name: getAbsolutePath('@storybook/react-webpack5'),
options: {},
},

docs: {
autodocs: true,
core: {
builder: 'webpack5',
},
}

function getAbsolutePath(value) {
return dirname(require.resolve(join(value, 'package.json')))
}

0 comments on commit c54370a

Please sign in to comment.